Project-grant: Difference between revisions
From SemanticOrganization
(Created page with "{{Semorg-generator |template-id=PG |page-name=Project Grants |entity-name=Project Grant |form-add-button-text=Add Project Grant |form-unique-number=No |rows=title,amount,grant...") |
No edit summary |
||
Line 3: | Line 3: | ||
|page-name=Project Grants | |page-name=Project Grants | ||
|entity-name=Project Grant | |entity-name=Project Grant | ||
|form- | |form-page-name=Grants | ||
|form-unique-number= | |form-unique-number=Yes | ||
|rows=title,amount,grantor,de-minimis,acceptance-date | |rows=title,amount,grantor,de-minimis,acceptance-date | ||
|list-headers=project-grant-title,project-grant-grantor,project-grant-amount | |list-headers=project-grant-title,project-grant-grantor,project-grant-amount | ||
Line 12: | Line 12: | ||
|name=Title | |name=Title | ||
|type=txt | |type=txt | ||
|parameters=mandatory | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=project | |id=project |
Revision as of 17:18, 12 March 2020
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
<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
{{semorg-category}}
Template
<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
{{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" ], ] ];