Project-partner: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
(Created page with "{{Semorg-generator |template-id=PT |form-unique-number=No |template-fields={{semorg-generator-field |id=project |property-id=PR |name=Project |type=wpg }}{{semorg-generator-fi...")
 
No edit summary
 
Line 1: Line 1:
{{Semorg-generator
{{Semorg-generator
|template-id=PT
|template-id=PP
|form-unique-number=No
|form-unique-number=No
|template-fields={{semorg-generator-field
|template-fields={{semorg-generator-field
Line 8: Line 8:
|type=wpg
|type=wpg
}}{{semorg-generator-field
}}{{semorg-generator-field
|id=team
|id=partner
|property-id=TM
|property-id=PA
|name=Team
|name=Partner
|type=wpg
|type=wpg
}}{{semorg-generator-field
|fields=input type=combobox,values from category=semorg-person-legal,mapping property=Semorg-person-name
|id=team-internal
|property-id=TI
|name=Team (internally)
|type=wpg
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name
}}{{semorg-generator-field
|id=team-external
|property-id=TE
|name=Team (externally)
|type=wpg
|parameters=input type=combobox,values from category=semorg-person-contact
}}{{semorg-generator-field
}}{{semorg-generator-field
|id=role
|id=role
Line 30: Line 19:
|type=txt
|type=txt
}}{{semorg-generator-field
}}{{semorg-generator-field
|id=start-date
|id=lead-partner
|property-id=SD
|property-id=LP
|name=Start date
|name=Lead Partner
|type=dat
|parameters=input type=datepicker,size=10
}}{{semorg-generator-field
|id=end-date
|property-id=ED
|name=End date
|type=dat
|parameters=input type=datepicker,size=10
}}{{semorg-generator-field
|id=main-responsible
|property-id=MR
|type=boo
|type=boo
|suffix=Main Responsible
|suffix=Lead Partner
|parameters=input type=checkbox
|parameters=input type=checkbox
}}
}}
}}
}}

Latest revision as of 18:58, 2 March 2021


Messages

"semorg-project-partner-template": "semorg-project-partner",
"semorg-project-partner-category": "semorg-project-partner",
"semorg-project-partner-form": "semorg-project-partner",
"semorg-form-project-partner-create-title": "Create Project-partner",
"semorg-form-project-partner-edit-title": "Edit Project-partner",

"semorg-form-project-partner-template": "project-partner",
"semorg-form-project-partner-rows": "lead-partner, partner, role, project",
"semorg-list-project-partner-headers": "project-partner-lead-partner, project-partner-partner, project-partner-role, project-partner-project",
"semorg-field-project-partner-lead-partner-name": "Lead Partner", 
"semorg-field-project-partner-lead-partner-parameters": "input type=checkbox", 
"semorg-field-project-partner-lead-partner-suffix": "Lead Partner",
"semorg-field-project-partner-partner-name": "Partner", 
"semorg-field-project-partner-partner-fields": "input type=combobox,values from category=semorg-person-legal,mapping property=Semorg-person-name",
"semorg-field-project-partner-project-name": "Project", 
"semorg-field-project-partner-project-parameters": "",
"semorg-field-project-partner-role-name": "Role", 
"semorg-field-project-partner-role-parameters": "",

Form

Form:Semorg-project-partner

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-project-partner-create-title}}
   |edit title={{int:semorg-form-project-partner-edit-title}}<span class="d-none">: <page name></span>
   |page name=
}}}

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

Category

Category:Semorg-project-partner

{{semorg-category}}

Template

Template:Semorg-project-partner

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-partner-category}}]]{{#semorg-set:project-partner 
  |lead-partner={{{lead-partner|}}} 
  |partner={{{partner|}}} 
  |role={{{role|}}} 
  |project={{{project|}}}
}}{{#semorg-detail:project-partner}}{{#semorg-table:project-partner 
  |lead-partner={{{lead-partner|}}} 
  |partner={{{partner|}}} 
  |role={{{role|}}} 
  |project={{{project|}}}
}}</includeonly>

Row Template

Template:Semorg-project-partner-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{lead-partner|}}}</td> 
<td>{{{partner|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{project|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-project-partner-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['project-partner'] = [ "id" => "PP","fields" => ["lead-partner" => [ "id" => "LP","type" => "boo" ],"partner" => [ "id" => "PA","type" => "wpg" ],"role" => [ "id" => "RO","type" => "txt" ],"project" => [ "id" => "PR","type" => "wpg" ], ] ];