summaryrefslogtreecommitdiff
path: root/pages/Form
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2023-04-27 17:41:33 -0300
committerYaco <franco@reevo.org>2023-04-27 17:41:33 -0300
commitf9386a90baf604e415db6ddb329dc47b877a1e20 (patch)
treea673a1e25d8ec9dd79f29175a565e1ca91cd07fa /pages/Form
parent16bf0a613c5f8cc0417336f96df68e10d51855e2 (diff)
add new objects: Case, Report
Diffstat (limited to 'pages/Form')
-rw-r--r--pages/Form/Form:Case.mw113
-rw-r--r--pages/Form/Form:Endorser.mw6
-rw-r--r--pages/Form/Form:Report.mw63
3 files changed, 178 insertions, 4 deletions
diff --git a/pages/Form/Form:Case.mw b/pages/Form/Form:Case.mw
new file mode 100644
index 0000000..c171e7f
--- /dev/null
+++ b/pages/Form/Form:Case.mw
@@ -0,0 +1,113 @@
+<noinclude>
+This is the "Case" form.
+To create a page with this form, enter the page name below;
+if a page with that name already exists, you will be sent to a form to edit that page.
+
+{{#forminput:form=Case|query string=namespace=Case|autocomplete on namespace=Case}}
+
+
+</noinclude><includeonly>
+<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
+{{{for template|Case}}}
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:description}}{{#info:{{int:rv-case:description:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:description|input type=textarea|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:organization-name}}{{#info:{{int:rv-case:organization-name:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:organization-name|class=form-control}}}</div>
+</div>
+
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:organization-url}}{{#info:{{int:rv-case:organization-url:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:organization-url|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:organization-email}}{{#info:{{int:rv-case:organization-email:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:organization-email|class=form-control}}}</div>
+</div>
+
+
+<hr>
+
+
+
+<!-- *********************************************************** -->
+
+<h2>Location</h2>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:place-country}}{{#info:{{int:rv-case:place-country:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:place-country|class=form-control|input type=dropdown|mandatory|mapping using translate=rv-country-|feeds to p=Case[case:place]}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:place-state}}{{#info:{{int:rv-case:place-state:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:place-state|input type=SF_Select|function=states:@@@@|sametemplate|field=case:place-country|class=form-control|feeds to map=Case[case:place]}}}</div>
+</div>
+
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:place-city}}{{#info:{{int:rv-case:place-city:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:place-city|class=form-control|feeds to map=Case[case:place]}}}</div>
+</div>
+
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:place-street}}{{#info:{{int:rv-case:place-street:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:place-street|class=form-control|feeds to map=Case[case:place]}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:place}}{{#info:{{int:rv-case:place:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:place|input type=googlemaps|width=100%|class=form-control}}}</div>
+</div>
+
+<hr/>
+
+<!-- *********************************************************** -->
+
+<hr/>
+<h2>Specific Information</h2>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:info-authors}}{{#info:{{int:rv-case:info-authors:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:info-authors|input type=text|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:info-topics}}{{#info:{{int:rv-case:info-topics:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:info-topics|class=form-control|input type=tree|top category=Topics|list|hideroot}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:info-participants}}{{#info:{{int:rv-case:info-participants:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:info-participants|input type=text|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-case:info-report}}{{#info:{{int:rv-case:info-report:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|case:info-report|values from namespace=Report|input type=radiobutton|mandatory=true|class=form-control}}}</div>
+</div>
+
+
+
+
+
+{{{end template}}}
+
+'''Free text:'''
+
+{{{standard input|free text|rows=20|editor=wikieditor}}}
+
+
+{{{standard input|summary}}}
+
+{{{standard input|minor edit}}} {{{standard input|watch}}}
+
+{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
+</includeonly>
diff --git a/pages/Form/Form:Endorser.mw b/pages/Form/Form:Endorser.mw
index 3f4c8d9..de4eea2 100644
--- a/pages/Form/Form:Endorser.mw
+++ b/pages/Form/Form:Endorser.mw
@@ -50,9 +50,7 @@ if a page with that name already exists, you will be sent to a form to edit that
<!-- *********************************************************** -->
-
-
-== Lugar ==
+<h2>Location</h2>
<div class="form-group row">
<div class="col-sm-2 col-form-label">{{int:rv-endorser:place-country}}{{#info:{{int:rv-endorser:place-country:ayuda}}}}</div>
@@ -115,7 +113,7 @@ if a page with that name already exists, you will be sent to a form to edit that
<div class="form-group row">
<div class="col-sm-2 col-form-label">{{int:rv-endorser:info-languages}}{{#info:{{int:rv-endorser:info-languages:ayuda}}}}</div>
-<div class="col-sm-10">{{{field|endorser:info-languages|input type=tokens|property=endorser:info-languages|class=form-control|mapping using translate=rv-language-}}}</div>
+<div class="col-sm-10">{{{field|endorser:info-languages|input type=listbox|class=form-control|mapping using translate=rv-language-}}}</div>
</div>
diff --git a/pages/Form/Form:Report.mw b/pages/Form/Form:Report.mw
new file mode 100644
index 0000000..dd46153
--- /dev/null
+++ b/pages/Form/Form:Report.mw
@@ -0,0 +1,63 @@
+<noinclude>
+This is the "Report" form.
+To create a page with this form, enter the page name below;
+if a page with that name already exists, you will be sent to a form to edit that page.
+
+{{#forminput:form=Report|query string=namespace=Report|autocomplete on namespace=Report}}
+
+
+</noinclude><includeonly>
+<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
+{{{for template|Report}}}
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-report:info-series}}{{#info:{{int:rv-report:info-series:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|report:info-series|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-report:info-coordinators}}{{#info:{{int:rv-report:info-coordinators:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|report:info-coordinators|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-report:info-date}}{{#info:{{int:rv-report:info-date:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|report:info-date|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-report:info-volume}}{{#info:{{int:rv-report:info-volume:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|report:info-volume|class=form-control}}}</div>
+</div>
+
+<hr />
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-report:info-url}}{{#info:{{int:rv-report:info-url:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|report:info-url|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-report:info-pdf}}{{#info:{{int:rv-report:info-pdf:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|report:info-pdf|class=form-control}}}</div>
+</div>
+
+<div class="form-group row">
+<div class="col-sm-2 col-form-label">{{int:rv-report:info-cover}}{{#info:{{int:rv-report:info-cover:ayuda}}}}</div>
+<div class="col-sm-10">{{{field|report:info-cover|class=form-control}}}</div>
+</div>
+
+
+{{{end template}}}
+
+'''Free text:'''
+
+{{{standard input|free text|rows=20|editor=wikieditor}}}
+
+
+{{{standard input|summary}}}
+
+{{{standard input|minor edit}}} {{{standard input|watch}}}
+
+{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
+</includeonly>