diff options
| author | lsces <lester@lsces.co.uk> | 2013-08-22 15:43:46 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2013-08-22 15:43:46 +0100 |
| commit | 650ee28714ab4666ee37d0a230bf21a2bce812fc (patch) | |
| tree | 959797a23d3dc76da174027c48f3c79a0f02ab90 /templates | |
| parent | b32cd9d6457137cc0d4cecd4f384d624eeee88fe (diff) | |
| download | contact-650ee28714ab4666ee37d0a230bf21a2bce812fc.tar.gz contact-650ee28714ab4666ee37d0a230bf21a2bce812fc.tar.bz2 contact-650ee28714ab4666ee37d0a230bf21a2bce812fc.zip | |
Expand admin functionality
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/admin_contact_type.tpl | 67 | ||||
| -rw-r--r-- | templates/admin_xref_types.tpl | 97 | ||||
| -rw-r--r-- | templates/menu_contact_admin.tpl | 7 |
3 files changed, 168 insertions, 3 deletions
diff --git a/templates/admin_contact_type.tpl b/templates/admin_contact_type.tpl new file mode 100644 index 0000000..f0ef48d --- /dev/null +++ b/templates/admin_contact_type.tpl @@ -0,0 +1,67 @@ +{* $Header$ *} +{strip} + +<div class="floaticon">{bithelp}</div> + +<div class="admin articles"> + <div class="header"> + <h1>{tr}Admin Contact Type{/tr}</h1> + </div> + + <div class="body"> + {formfeedback error=$gContent->mErrors} + + {form legend="Create a new Topic" enctype="multipart/form-data"} + <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> + + <div class="control-group"> + {formlabel label="Contact Type Title" for="type_name"} + {forminput} + <input type="text" id="topic_name" name="type_name" /> + {formhelp note=""} + {/forminput} + </div> + + <div class="control-group submit"> + <input type="submit" class="btn" name="fSubmitAddType" value="{tr}Add Contact Type{/tr}" /> + </div> + {/form} + + <table class="table data"> + <caption>{tr}List of Contact Types{/tr}</caption> + <tr> + <th>{tr}Title{/tr} [ {tr}Number of Types{/tr} ]</th> + <th>{tr}Role{/tr}</th> + <th>{tr}Actions{/tr}</th> + </tr> + + {section name=user loop=$contacttype} + <tr class="{cycle values="even,odd"}"> + <td> + <h2> + <a href="{$smarty.const.CONTACT_PKG_URL}index.php?xref_type={$contacttype[user].xref_type}">{$contacttype[user].source}</a> + <small>[ {$contacttype[user].num_types} ]</small> + </h2> + + </td> + + <td style="text-align:center;"> + {$contacttype[user].role_id} + </td> + + <td align="right"> + {smartlink ititle='edit' booticon="icon-edit" ifile='edit_contact_type.php' xref_type=$contacttype[user].xref_type} + {* smartlink ititle='permissions' booticon="icon-key" ipackage='kernel' ifile='object_permissions.php' objectName="Topic `$topics[user].name`" object_type=topic permType=topics object_id=$topics[user].topic_id *} + <br /> + <a href="{$smarty.const.CONTACT_PKG_URL}admin/admin_contact_type.php?fRemoveType=1&topic_id={$contacttype[user].xref_type}">{booticon iname="icon-trash" ipackage="icons" iforce=icon_text iexplain="Remove Contact Type"}</a> + </td> + </tr> + {sectionelse} + <tr class="norecords"> + <td colspan="4">{tr}No records found{/tr}</td> + </tr> + {/section} + </table> + </div><!-- end .body --> +</div><!-- end .admin --> +{/strip} diff --git a/templates/admin_xref_types.tpl b/templates/admin_xref_types.tpl new file mode 100644 index 0000000..4c43a51 --- /dev/null +++ b/templates/admin_xref_types.tpl @@ -0,0 +1,97 @@ +{* $Header$ *} +{strip} + +<div class="floaticon">{bithelp}</div> + +<div class="admin contact"> + <div class="header"> + <h1>{tr}Admin Contact Source Type{/tr}</h1> + </div> + + <div class="body"> + {formfeedback error=$gContent->mErrors} + + {form legend="Create a new Source Type" enctype="multipart/form-data"} + <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> + + <div class="control-group"> + {formlabel label="Source Type Title" for="cross_ref_title"} + {forminput} + <input type="text" id="cross_ref_title" name="cross_ref_title" /> + {formhelp note=""} + {/forminput} + </div> + + <div class="control-group"> + {formlabel label="Source Template" for="topic_name"} + {forminput} + <input type="text" id="template" name="template" /> + {formhelp note=""} + {/forminput} + </div> + + <div class="control-group submit"> + <input type="submit" class="btn" name="fSubmitAddTopic" value="{tr}Add Topic{/tr}" /> + </div> + {/form} + + <table class="table data"> + <caption>{tr}List of Contact Source Types{/tr}</caption> + <tr> + <th>{tr}Source{/tr}</th> + <th>{tr}Title{/tr} [ {tr}Number of Entries{/tr} ]</th> + <th>{tr}Template{/tr}</th> + <th>{tr}Href{/tr}</th> + <th>{tr}Multi{/tr}</th> + <th>{tr}Role{/tr}</th> + <th>{tr}Actions{/tr}</th> + </tr> + + {section name=type loop=$xref_types} + <tr class="{cycle values="even,odd"}"> + <td style="text-align:center;"> + <h2> + {$xref_types[type].source} + </h2> + </td> + + <td> + <h2> + <a href="{$smarty.const.CONTACT_PKG_URL}list.php?source={$xref_types[type].source}">{$xref_types[type].cross_ref_title}</a> + <small>[ {$xref_types[type].num_entries} ]</small> + </h2> + + </td> + + <td style="text-align:center;"> + {$xref_types[type].template} + </td> + + <td style="text-align:center;"> + {$xref_types[type].cross_ref_href} + </td> + + <td style="text-align:center;"> + {$xref_types[type].multi} + </td> + + <td style="text-align:center;"> + {$xref_types[type].role} + </td> + + <td align="right"> + {smartlink ititle='edit' booticon="icon-edit" ifile='edit_xref_type.php' source=$xref_types[type].source} + {* smartlink ititle='permissions' booticon="icon-key" ipackage='kernel' ifile='object_permissions.php' objectName="Topic `$xref_types[type].name`" object_type=topic permType=topics object_id=$xref_types[type].topic_id *} + <br /> + <a href="{$smarty.const.CONTACT_PKG_URL}admin/admin_topics.php?fRemoveSource=1&source={$xref_types[type].topic_id}">{booticon iname="icon-trash" ipackage="icons" iforce=icon_text iexplain="Remove Source"}</a> + </td> + </tr> + {sectionelse} + <tr class="norecords"> + <td colspan="4">{tr}No records found{/tr}</td> + </tr> + {/section} + </table> + </div><!-- end .body --> +</div><!-- end .admin --> +{/strip} diff --git a/templates/menu_contact_admin.tpl b/templates/menu_contact_admin.tpl index dc941f0..9c0af21 100644 --- a/templates/menu_contact_admin.tpl +++ b/templates/menu_contact_admin.tpl @@ -1,7 +1,8 @@ {strip} -<ul> +{if $packageMenuTitle}<a href="#"> {tr}{$packageMenuTitle|capitalize}{/tr}</a>{/if} +<ul class="{$packageMenuClass}"> <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=contact">{tr}Contact Manager List Settings{/tr}</a></li> - <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=contacttype">{tr}Contact Type List{/tr}</a></li> - <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=contactxref">{tr}Contact Xref List{/tr}</a></li> + <li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}admin/admin_contact_type.php">{tr}Contact Type List{/tr}</a></li> + <li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}admin/admin_xref_types.php">{tr}Contact Xref List{/tr}</a></li> </ul> {/strip} |
