Template:FileMngmnt: Difference between revisions

From Tsadra Foundation Advanced Contemplative Scholarships
(by SublimeText.Mediawiker)
(by SublimeText.Mediawiker)
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
| class="ellipsis" style="font-size: .8em; vertical-align: middle;" | {{#if: {{{file|}}}  
<tr {{{extrarowparam|}}}>{{#switch:{{{field|}}}
| [[{{{fieldtofill|}}}::{{{file|}}}| ]][[Media:{{FileCheck|{{{file|}}}}}|{{{file|}}}]]  
|FileHaveAcceptLetter=
|
|FileHaveRetreatBudgCost=
}}
|FileRecomOne=
| <span class="black-links">{{#if: {{{file|}}}  
|FileRecomTwo=
| {{#if: {{#show: File:{{FileCheck|{{{file|}}}}} |?filetype}}  
|#default=
| {{#formlink:form=Documents
<th>{{#switch:{{{checkboxvalue|}}}
|target=File:{{FileCheck|{{{file|}}}}}
|Yes
|link text=<i class="fas fa-file-edit fa-fw"></i>
|true=[[{{{checkbox|}}}::{{{checkboxvalue|}}}| ]]<span style="color: green;">✓</span>
|link type=link
|#default={{#if: {{#ask:[[Category: Application Files]] [[fieldtofill::{{{field|}}}]] [[applicationpage::{{{applicationpage|}}}]] OR [[Category: Application Files]] [[Category:{{PAGENAME}}]] [[filetype::{{{filetype|}}}]] }}
|tooltip=Edit this file's metadata
| [[{{{checkbox|}}}::Yes| ]]<span style="color: green;">✓</span>
|new window
| <span style="color: red; font-weight: bold;">X</span>
}}
}}
</th> }}
<th>{{{label|}}}
</th>
<td class="ellipsis" style="font-size: .8em; vertical-align: middle; {{#ifeq: {{{label|}}} | File: | max-width: 300px;}}">{{#if: {{{fieldvalue|}}}  
| [[{{{field|}}}::{{{fieldvalue|}}}| ]][[Media:{{FileCheck|{{{fieldvalue|}}}}}|{{{fieldvalue|}}}]]
| {{#ask:[[Category: Application Files]][[fieldtofill::{{{field|}}}]][[applicationpage::{{{applicationpage|}}}]]
|?fieldtofill
|link=none
|limit=1
|format=template
|template=FileMgmtDisplay
}}
}}
| {{#autoedit:form=Documents
}}
|target=File:{{FileCheck|{{{file|}}}}}
</td>
|link text=<i class="fas fa-plus fa-fw" style="color: red;"></i>
<td class="black-links">{{#if: {{{fieldvalue|}}}
|link type=link
| {{#if: {{#show: File:{{FileCheck|{{{fieldvalue|}}}}} |?filetype}}
|summary=Added metadata to file page.
| {{#formlink:form=Documents
|tooltip=Add metadata to file page
|target=File:{{FileCheck|{{{fieldvalue|}}}}}
|query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{{submissiondate|}}}&Filepage[applicationpage]={{{applicationpage|}}}&Filepage[fieldtofill]={{{fieldtofill|}}}&Filepage[boxtocheck]={{{boxtocheck|}}}
|link text=<i class="fas fa-file-edit fa-fw"></i>
|reload
|link type=link
|tooltip=Edit this file's metadata
|new window
}}
| {{#autoedit:form=Documents
|target=File:{{FileCheck|{{{fieldvalue|}}}}}
|link text=<span style="color: red; font-weight: bold;">Click me!</span>
|link type=link
|summary=Added metadata to file page.
|tooltip=Add metadata to file page
|query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{{submissiondate|}}}&Filepage[applicationpage]={{{applicationpage|}}}&Filepage[fieldtofill]={{{field|}}}&Filepage[boxtocheck]={{{checkbox|}}}
}}
}}
}}
}}
| {{#ask:[[Category: Application Files]][[fieldtofill::{{{field|}}}]][[applicationpage::{{{applicationpage|}}}]]
| {{#ask:[[Category: Application Files]][[fieldtofill::{{{fieldtofill|}}}]][[applicationpage::{{{applicationpage|}}}]]
|?fieldtofill
|?fieldtofill
|?boxtocheck
|?boxtocheck
|link=none
|link=none
|format=template
|format=template
|template=EditFileLink
|template=AddFileToApp
|default={{#formlink:form=Documents
|default={{#formlink:form=Documents
|link text=<i class="fas fa-cloud-upload-alt fa-fw"></i> Upload File
|link text=<i class="fas fa-cloud-upload-alt fa-fw"></i>
|link type=link
|link type=link
|tooltip=Upload this file
|tooltip=Upload this file
|query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}&Filepage[applicationpage]={{{applicationpage|}}}&Filepage[fieldtofill]={{{field|}}}&Filepage[boxtocheck]={{{checkbox|}}}
|query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{{submissiondate|}}}&Filepage[applicationpage]={{{applicationpage|}}}&Filepage[fieldtofill]={{{fieldtofill|}}}&Filepage[boxtocheck]={{{boxtocheck|}}}
|new window
|new window
}}
}}
}}
}}
}}
}}</span>
</td>
</tr>

Latest revision as of 12:32, 6 February 2023