Task: Difference between revisions
From SemanticOrganization
(Created page with "{{Semorg-generator |template-id=TA |page-name=Tasks |entity-name=Task |form-page-name=Tasks |form-unique-number=Yes |rows=title, description, person, group, dates |list-header...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 18: | Line 18: | ||
|type=txt | |type=txt | ||
|parameters=input type=textarea,rows=2,autogrow,cols=60 | |parameters=input type=textarea,rows=2,autogrow,cols=60 | ||
}}{{semorg-generator-field | |||
|id=responsible | |||
|property-id=RE | |||
|name=Responsible | |||
|type=wpg | |||
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=semorg-person-name | |||
}}{{semorg-generator-field | |||
|id=meeting | |||
|property-id=ME | |||
|name=Meeting | |||
|type=wpg | |||
}}{{semorg-generator-field | |||
|id=group | |||
|property-id=GR | |||
|name=Group | |||
|type=wpg | |||
|parameters=input type=combobox,values from category=semorg-group | |||
}}{{semorg-generator-field | |||
|id=project | |||
|property-id=PR | |||
|name=Project | |||
|type=wpg | |||
|parameters=input type=combobox,values from category=semorg-project | |||
}}{{semorg-generator-field | |||
|id=due-date | |||
|property-id=DU | |||
|name=Due date | |||
|type=dat | |||
|parameters=input type=datepicker,size=10 | |||
}}{{semorg-generator-field | |||
|id=done-date | |||
|property-id=DO | |||
|name=Done date | |||
|prefix='''done at''' | |||
|type=dat | |||
|parameters=input type=datepicker,size=10 | |||
}}{{semorg-generator-field | |||
|id=done | |||
|property-id=DN | |||
|name=Done | |||
|type=boo | |||
|parameters=input type=checkbox | |||
}}{{semorg-generator-field | |||
|id=dates | |||
|property-id=DA | |||
|name=planned till | |||
|fields=due-date,done-date | |||
}} | }} | ||
}} | }} |
Latest revision as of 05:13, 7 February 2020
Messages
"semorg-task-template": "semorg-task", "semorg-task-category": "semorg-task", "semorg-task-form": "semorg-task", "semorg-task-page-name": "Tasks", "semorg-task-entity-name": "Task", "semorg-form-task-create-title": "Create Task", "semorg-form-task-edit-title": "Edit Task", "semorg-form-task-page-name": "Tasks", "semorg-form-task-template": "task", "semorg-form-task-rows": "title, description, person, group, dates", "semorg-list-task-headers": "task-title, task-person, task-due-date", "semorg-field-task-dates-name": "planned till", "semorg-field-task-dates-fields": "due-date,done-date", "semorg-field-task-description-name": "Description", "semorg-field-task-description-parameters": "input type=textarea|rows=2|autogrow|cols=60", "semorg-field-task-done-name": "Done", "semorg-field-task-done-parameters": "input type=checkbox", "semorg-field-task-done-date-name": "Done date", "semorg-field-task-done-date-parameters": "input type=datepicker|size=10", "semorg-field-task-done-date-prefix": "done at", "semorg-field-task-due-date-name": "Due date", "semorg-field-task-due-date-parameters": "input type=datepicker|size=10", "semorg-field-task-group-name": "Group", "semorg-field-task-group-parameters": "input type=combobox|values from category=semorg-group", "semorg-field-task-meeting-name": "Meeting", "semorg-field-task-meeting-parameters": "", "semorg-field-task-project-name": "Project", "semorg-field-task-project-parameters": "input type=combobox|values from category=semorg-project", "semorg-field-task-responsible-name": "Responsible", "semorg-field-task-responsible-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=semorg-person-name", "semorg-field-task-title-name": "Title", "semorg-field-task-title-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-task-create-title}} |edit title={{int:semorg-form-task-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-task-page-name}}/<unique number;start=1> }}} {{semorg-form-template|task}} {{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|task|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-task-category}}]]{{#semorg-set:task |group={{{group|}}} |done-date={{{done-date|}}} |done={{{done|}}} |title={{{title|}}} |project={{{project|}}} |description={{{description|}}} |due-date={{{due-date|}}} |meeting={{{meeting|}}} |dates={{{dates|}}} |responsible={{{responsible|}}} }}{{#semorg-detail:task}}{{#semorg-table:task |group={{{group|}}} |done-date={{{done-date|}}} |done={{{done|}}} |title={{{title|}}} |project={{{project|}}} |description={{{description|}}} |due-date={{{due-date|}}} |meeting={{{meeting|}}} |dates={{{dates|}}} |responsible={{{responsible|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{group|}}}</td> <td>{{{done-date|}}}</td> <td>{{{done|}}}</td> <td>{{{title|}}}</td> <td>{{{project|}}}</td> <td>{{{description|}}}</td> <td>{{{due-date|}}}</td> <td>{{{meeting|}}}</td> <td>{{{dates|}}}</td> <td>{{{responsible|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:task |heading={{int:semorg-task-page-name}} |formlink={{#semorg-formlink:task}} |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-task-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['task'] = [ "id" => "TA","fields" => ["group" => [ "id" => "GR","type" => "wpg" ],"done-date" => [ "id" => "DO","type" => "dat" ],"done" => [ "id" => "DN","type" => "boo" ],"title" => [ "id" => "TI","type" => "txt" ],"project" => [ "id" => "PR","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"due-date" => [ "id" => "DU","type" => "dat" ],"meeting" => [ "id" => "ME","type" => "wpg" ],"dates" => [ "id" => "DA","type" => "" ],"responsible" => [ "id" => "RE","type" => "wpg" ], ] ];