Transfer

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-transfer-template": "semorg-transfer",
"semorg-transfer-category": "semorg-transfer",
"semorg-transfer-form": "semorg-transfer",
"semorg-form-transfer-create-title": "Create Umbuchung",
"semorg-form-transfer-edit-title": "Edit Umbuchung", 
"semorg-form-transfer-page-name": "Umbuchung",

"semorg-form-transfer-template": "",
"semorg-form-transfer-rows": "amount, recipient, date, sender, list, year, details, listed, subject, note, type",
"semorg-list-transfer-headers": "transfer-amount, transfer-recipient, transfer-date, transfer-sender, transfer-list, transfer-year, transfer-details, transfer-listed, transfer-subject, transfer-note, transfer-type",
"semorg-field-transfer-amount-name": "Betrag", 
"semorg-field-transfer-amount-parameters": "size=10", 
"semorg-field-transfer-amount-suffix": "€",
"semorg-field-transfer-date-name": "Datum", 
"semorg-field-transfer-date-parameters": "input type=datepicker|size=10",
"semorg-field-transfer-details-name": "Anmerkungen", 
"semorg-field-transfer-details-parameters": "input type=textarea|autogrow|rows=1|cols=60",
"semorg-field-transfer-list-name": "Liste", 
"semorg-field-transfer-list-parameters": "",
"semorg-field-transfer-listed-name": "gelistet?", 
"semorg-field-transfer-listed-parameters": "",
"semorg-field-transfer-note-name": "Note", 
"semorg-field-transfer-note-parameters": "input type=textarea|rows=1|cols=60|autogrow",
"semorg-field-transfer-recipient-name": "An", 
"semorg-field-transfer-recipient-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=Semorg-person-name",
"semorg-field-transfer-sender-name": "Von", 
"semorg-field-transfer-sender-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=Semorg-person-name",
"semorg-field-transfer-subject-name": "Betreff", 
"semorg-field-transfer-subject-parameters": "",
"semorg-field-transfer-type-name": "Typ", 
"semorg-field-transfer-type-parameters": "",
"semorg-field-transfer-year-name": "Year", 
"semorg-field-transfer-year-parameters": "",

Form

Form:Semorg-transfer

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

{{semorg-form-template|transfer}}
 
{{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|transfer|}}

Category

Category:Semorg-transfer

{{semorg-category}}

Template

Template:Semorg-transfer

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-transfer-category}}]]{{#semorg-set:transfer 
  |amount={{{amount|}}} 
  |recipient={{{recipient|}}} 
  |date={{{date|}}} 
  |sender={{{sender|}}} 
  |list={{{list|}}} 
  |year={{{year|}}} 
  |details={{{details|}}} 
  |listed={{{listed|}}} 
  |subject={{{subject|}}} 
  |note={{{note|}}} 
  |type={{{type|}}}
}}{{#semorg-detail:transfer}}{{#semorg-table:transfer 
  |amount={{{amount|}}} 
  |recipient={{{recipient|}}} 
  |date={{{date|}}} 
  |sender={{{sender|}}} 
  |list={{{list|}}} 
  |year={{{year|}}} 
  |details={{{details|}}} 
  |listed={{{listed|}}} 
  |subject={{{subject|}}} 
  |note={{{note|}}} 
  |type={{{type|}}}
}}</includeonly>

Row Template

Template:Semorg-transfer-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{amount|}}}</td> 
<td>{{{recipient|}}}</td> 
<td>{{{date|}}}</td> 
<td>{{{sender|}}}</td> 
<td>{{{list|}}}</td> 
<td>{{{year|}}}</td> 
<td>{{{details|}}}</td> 
<td>{{{listed|}}}</td> 
<td>{{{subject|}}}</td> 
<td>{{{note|}}}</td> 
<td>{{{type|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-transfer-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:transfer
  |heading={{int:semorg-transfer-page-name}}
  |formlink={{#semorg-formlink:transfer}}
  |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-transfer-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['transfer'] = [ "id" => "TR","fields" => ["amount" => [ "id" => "AM","type" => "num" ],"recipient" => [ "id" => "RE","type" => "wpg" ],"date" => [ "id" => "DA","type" => "dat" ],"sender" => [ "id" => "SE","type" => "wpg" ],"list" => [ "id" => "LI","type" => "wpg" ],"year" => [ "id" => "YE","type" => "num" ],"details" => [ "id" => "DE","type" => "txt" ],"listed" => [ "id" => "LD","type" => "boo" ],"subject" => [ "id" => "SU","type" => "txt" ],"note" => [ "id" => "NO","type" => "txt" ],"type" => [ "id" => "TY","type" => "txt" ], ] ];