Transfer: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
m (Text replacement - "{{Generator" to "{{Semorg-generator")
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Semorg-generator
{{Semorg-generator
|template-id=TR
|template-id=TR
|form-titles=Umbuchung
|page-name=
|entity-name=
|form-add-button-text=
|form-page-name=Umbuchung
|form-page-name=Umbuchung
|form-unique-number=Yes
|form-unique-number=Yes
|template-fields={{Semorg-generator-field
|placeholder=
|field-id=sender
|custom-overview-list=
|field-property-id=SE
|display-title=
|field-name=Von
|display-title-message=
|field-type=wpg
|rows=
|field-parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name
|form-template=
}}{{Semorg-generator-field
|list-headers=
|field-id=recipient
|template-fields={{semorg-generator-field
|field-property-id=RE
|id=sender
|field-name=An
|property-id=SE
|field-type=wpg
|name=Von
|field-parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name
|prefix=
}}{{Semorg-generator-field
|type=wpg
|field-id=amount
|suffix=
|field-property-id=AM
|fields=
|field-name=Betrag
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name
|field-type=num
|help=
|field-suffix=€
}}{{semorg-generator-field
|field-parameters=size=10
|id=recipient
}}{{Semorg-generator-field
|property-id=RE
|field-id=date
|name=An
|field-property-id=DA
|prefix=
|field-name=Datum
|type=wpg
|field-type=dat
|suffix=
|field-parameters=input type=datepicker,size=10
|fields=
}}{{Semorg-generator-field
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name
|field-id=details
|help=
|field-property-id=DE
}}{{semorg-generator-field
|field-name=Anmerkungen
|id=amount
|field-type=txt
|property-id=AM
|field-parameters=input type=textarea,autogrow,rows=1,cols=60
|name=Betrag
|prefix=
|type=num
|suffix=€
|fields=
|parameters=size=10
|help=
}}{{semorg-generator-field
|id=date
|property-id=DA
|name=Datum
|prefix=
|type=dat
|suffix=
|fields=
|parameters=input type=datepicker,size=10
|help=
}}{{semorg-generator-field
|id=year
|property-id=YE
|name=Year
|prefix=
|type=num
|suffix=
|fields=
|parameters=
|help=
}}{{semorg-generator-field
|id=details
|property-id=DE
|name=Anmerkungen
|prefix=
|type=txt
|suffix=
|fields=
|parameters=input type=textarea,autogrow,rows=1,cols=60
|help=
}}{{semorg-generator-field
|id=subject
|property-id=SU
|name=Betreff
|prefix=
|type=txt
|suffix=
|fields=
|parameters=
|help=
}}{{semorg-generator-field
|id=list
|property-id=LI
|name=Liste
|prefix=
|type=wpg
|suffix=
|fields=
|parameters=
|help=
}}{{semorg-generator-field
|id=listed
|property-id=LD
|name=gelistet?
|prefix=
|type=boo
|suffix=
|fields=
|parameters=
|help=
}}{{semorg-generator-field
|id=type
|property-id=TY
|name=Typ
|prefix=
|type=txt
|suffix=
|fields=
|parameters=
|help=
}}{{semorg-generator-field
|id=note
|property-id=NO
|name=Note
|prefix=
|type=txt
|suffix=
|fields=
|parameters=input type=textarea,rows=1,cols=60,autogrow
|help=
}}
}}
|form-titles=Umbuchung
}}
}}

Latest revision as of 08:50, 8 July 2020


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" ], ] ];