aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-02 15:36:14 -0800
committerredmatrix <git@macgirvin.com>2016-03-02 15:36:14 -0800
commit6f4c45a48912c9dfaaf7631c58849476878b4fe1 (patch)
tree2d91fc3852f45a77c55b136c1dcc6694e66f1d51
parent157bbb14b51a733014e23d9e8bfc26b559ad2493 (diff)
downloadvolse-hubzilla-6f4c45a48912c9dfaaf7631c58849476878b4fe1.tar.gz
volse-hubzilla-6f4c45a48912c9dfaaf7631c58849476878b4fe1.tar.bz2
volse-hubzilla-6f4c45a48912c9dfaaf7631c58849476878b4fe1.zip
UI cleanup for admin profile field management page
-rw-r--r--mod/admin.php4
-rw-r--r--view/tpl/admin_profiles.tpl25
2 files changed, 18 insertions, 11 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 2e2536af3..6ec722691 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -1759,14 +1759,14 @@ function admin_page_profs(&$a) {
$o = replace_macros(get_markup_template('admin_profiles.tpl'),array(
'$title' => t('Profile Management'),
'$basic' => array('basic',t('Basic Profile Fields'),$basic,''),
- '$advanced' => array('advanced',t('Advanced Profile Fields'),$advanced,t('In addition to basic fields')),
+ '$advanced' => array('advanced',t('Advanced Profile Fields'),$advanced,t('(In addition to basic fields)')),
'$all' => $all,
'$all_desc' => t('All available fields'),
'$cust_field_desc' => t('Custom Fields'),
'$cust_fields' => $r,
'$edit' => t('Edit'),
'$drop' => t('Delete'),
- '$new' => t('Create'),
+ '$new' => t('Create Custom Field'),
'$submit' => t('Submit')
));
diff --git a/view/tpl/admin_profiles.tpl b/view/tpl/admin_profiles.tpl
index 70fcc303b..8962c21b3 100644
--- a/view/tpl/admin_profiles.tpl
+++ b/view/tpl/admin_profiles.tpl
@@ -1,5 +1,14 @@
<div class="generic-content-wrapper">
-<h2>{{$title}}</h2>
+<div class="section-title-wrapper"><a title="{{$new}}" class="btn btn-primary btn-xs pull-right" href="admin/profs/new"><i class="icon-plus-sign">&nbsp;{{$new}}</i></a><h2>{{$title}}</h2>
+<div class="clear"></div>
+</div>
+
+<div class="section-content-tools-wrapper">
+
+<div class="section-content-info-wrapper">{{$all_desc}}
+<br /><br />
+{{$all}}
+</div>
<form action="admin/profs" method="post">
@@ -10,22 +19,20 @@
</form>
-<div>{{$all_desc}}</div>
-<div>{{$all}}</div>
+{{if $cust_fields}}
<br /><br />
-<div>{{$cust_field_desc}}</div>
-
-<button href="admin/profs/new">{{$new}}</button>
+<div><strong>{{$cust_field_desc}}</strong></div>
+<br />
-{{if $cust_fields}}
-<table>
+<table width="100%">
{{foreach $cust_fields as $field}}
-<tr><td>{{$field.field_desc}}</td><td>{{$field.field_name}}</td><td><a href="admin/profs/{{$field.id}}" >{{$edit}}</a> <a href="admin/profs/drop/{{$field.id}}">{{$drop}}</a></td></tr>
+<tr><td>{{$field.field_name}}</td><td>{{$field.field_desc}}</td><td><a class="btn btn-danger btn-xs" href="admin/profs/drop/{{$field.id}}" title="{{$drop}}"><i class="icon-trash"></i>&nbsp;{{$drop}}</a> <a class="btn btn-xs" title="{{$edit}}" href="admin/profs/{{$field.id}}" ><i class="icon-pencil"></i></a></td></tr>
{{/foreach}}
</table>
{{/if}}
+</div>
</div>