Project-grant

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-project-grant-template": "semorg-project-grant",
"semorg-project-grant-category": "semorg-project-grant",
"semorg-project-grant-form": "semorg-project-grant",
"semorg-project-grant-page-name": "Project Grants",
"semorg-project-grant-entity-name": "Project Grant",
"semorg-form-project-grant-create-title": "Create Project Grant",
"semorg-form-project-grant-edit-title": "Edit Project Grant", 
"semorg-form-project-grant-page-name": "Grants",

"semorg-form-project-grant-template": "project-grant",
"semorg-form-project-grant-rows": "title,amount,grantor,de-minimis,acceptance-date",
"semorg-list-project-grant-headers": "project-grant-title,project-grant-grantor,project-grant-amount",
"semorg-field-project-grant-acceptance-date-name": "Acceptance Date", 
"semorg-field-project-grant-acceptance-date-parameters": "",
"semorg-field-project-grant-amount-name": "Amount", 
"semorg-field-project-grant-amount-parameters": "",
"semorg-field-project-grant-de-minimis-name": "", 
"semorg-field-project-grant-de-minimis-parameters": "input type=checkbox", 
"semorg-field-project-grant-de-minimis-suffix": "de minimis",
"semorg-field-project-grant-grantor-name": "Grantor", 
"semorg-field-project-grant-grantor-parameters": "",
"semorg-field-project-grant-note-name": "Note", 
"semorg-field-project-grant-note-parameters": "",
"semorg-field-project-grant-project-name": "", 
"semorg-field-project-grant-project-parameters": "",
"semorg-field-project-grant-responsible-name": "Responsible", 
"semorg-field-project-grant-responsible-parameters": "",
"semorg-field-project-grant-title-name": "Title", 
"semorg-field-project-grant-title-parameters": "mandatory",

Form

Form:Semorg-project-grant

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-project-grant-create-title}}
   |edit title={{int:semorg-form-project-grant-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-project-grant-page-name}}/<unique number;start=1>
}}}

{{semorg-form-template|project-grant}}
 
{{semorg-form-standard-inputs}}
</includeonly>

as embedded:

Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template. The second parameter of the semorg-form-template-embed call should be the target field, specified with <feature>[<field>] (e.g. meeting-group[files] or {{int:semorg-meeting-group-template}}[files] to respect template customization).

{{semorg-form-template-embed|project-grant|}}

Category

Category:Semorg-project-grant

{{semorg-category}}

Template

Template:Semorg-project-grant

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-grant-category}}]]{{#semorg-set:project-grant 
  |note={{{note|}}} 
  |project={{{project|}}} 
  |responsible={{{responsible|}}} 
  |title={{{title|}}} 
  |amount={{{amount|}}} 
  |acceptance-date={{{acceptance-date|}}} 
  |de-minimis={{{de-minimis|}}} 
  |grantor={{{grantor|}}}
}}{{#semorg-detail:project-grant}}{{#semorg-table:project-grant 
  |note={{{note|}}} 
  |project={{{project|}}} 
  |responsible={{{responsible|}}} 
  |title={{{title|}}} 
  |amount={{{amount|}}} 
  |acceptance-date={{{acceptance-date|}}} 
  |de-minimis={{{de-minimis|}}} 
  |grantor={{{grantor|}}}
}}</includeonly>

Row Template

Template:Semorg-project-grant-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{note|}}}</td> 
<td>{{{project|}}}</td> 
<td>{{{responsible|}}}</td> 
<td>{{{title|}}}</td> 
<td>{{{amount|}}}</td> 
<td>{{{acceptance-date|}}}</td> 
<td>{{{de-minimis|}}}</td> 
<td>{{{grantor|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-project-grant-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:project-grant
  |heading={{int:semorg-project-grant-page-name}}
  |formlink={{#semorg-formlink:project-grant}}
  |links={{{links|}}}
  |query={{{query|}}}
  |sort={{{sort|}}}
  |order={{{order|}}}
  |limit={{{limit|}}}
  |filter links={{{filter links|}}}
  |filters={{{filters|}}}
  |category={{{category|}}}
  |headers={{{headers|}}}
  |row template={{{row template|}}}
  |tableclass={{{tableclass|}}}
  |title={{{title|}}}
  |sums={{{sums|}}}
  |csv={{{csv|}}}
  |default={{{default|}}}
  |returnto={{{returnto|}}}
  |help={{{help|}}}
}}</includeonly>

Overview Page

Project Grants

{{semorg-project-grant-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['project-grant'] = [ "id" => "PG","fields" => ["note" => [ "id" => "NO","type" => "txt" ],"project" => [ "id" => "PR","type" => "wpg" ],"responsible" => [ "id" => "RE","type" => "wpg" ],"title" => [ "id" => "TI","type" => "txt" ],"amount" => [ "id" => "AM","type" => "num" ],"acceptance-date" => [ "id" => "AD","type" => "dat" ],"de-minimis" => [ "id" => "DM","type" => "boo" ],"grantor" => [ "id" => "GR","type" => "wpg" ], ] ];