Invoices: Difference between revisions
From SemanticOrganization
m (Text replacement - "|field-id=" to "|id=") |
m (Text replacement - "|field-" to "|") |
||
Line 3: | Line 3: | ||
|template-fields={{Semorg-generator-field | |template-fields={{Semorg-generator-field | ||
|id=year | |id=year | ||
| | |property-id=YE | ||
| | |type=num | ||
}} | }} | ||
}} | }} |
Revision as of 14:24, 22 November 2018
Messages
"semorg-invoices-template": "semorg-invoices", "semorg-invoices-category": "semorg-invoices", "semorg-invoices-form": "semorg-invoices", "semorg-form-invoices-create-title": "Create Invoices", "semorg-form-invoices-edit-title": "Edit Invoices", "semorg-form-invoices-template": "invoices", "semorg-form-invoices-rows": "", "semorg-list-invoices-headers": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-invoices-create-title}} |edit title={{int:semorg-form-invoices-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|invoices}} {{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|invoices|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoices-category}}]]{{#semorg-set:invoices }}{{#semorg-detail:invoices}}{{#semorg-table:invoices }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-invoices-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:invoices |heading={{int:semorg-invoices-page-name}} |formlink={{#semorg-forminput:invoices}} |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-invoices-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['invoices'] = [ "id" => "IS","fields" => [ ] ];