Commit 92fcbd95 authored by Tino Goratsch's avatar Tino Goratsch

minor user interface refinements

parent 44cecc62
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</div> </div>
{block FILES_FILE_UPLOAD} {block FILES_FILE_UPLOAD}
<div class="form-group"> <div class="form-group">
<label for="file-internal" class="col-sm-2 control-label required">{lang t="files|filename"}</label> <label for="file-internal" class="col-sm-2 control-label required">{lang t="files|file"}</label>
<div class="col-sm-10"> <div class="col-sm-10">
<div class="checkbox"> <div class="checkbox">
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
<div id="external-filesize" class="form-group"> <div id="external-filesize" class="form-group">
<label for="filesize" class="col-sm-2 control-label required">{lang t="files|filesize"}</label> <label for="filesize" class="col-sm-2 control-label required">{lang t="files|filesize"}</label>
<div class="col-sm-10"> <div class="col-sm-4">
<div class="row"> <div class="row">
<div class="col-sm-10"> <div class="col-sm-8">
<input class="form-control" type="text" name="filesize" id="filesize" value="{$form.filesize}" maxlength="15"> <input class="form-control" type="text" name="filesize" id="filesize" value="{$form.filesize}" maxlength="15">
</div> </div>
<div class="col-sm-2"> <div class="col-sm-4">
<select class="form-control" name="unit" id="unit"> <select class="form-control" name="unit" id="unit">
{foreach $units as $row} {foreach $units as $row}
<option value="{$row.value}"{$row.selected}>{$row.value}</option> <option value="{$row.value}"{$row.selected}>{$row.value}</option>
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
{block FILES_FILE_UPLOAD} {block FILES_FILE_UPLOAD}
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">{lang t="files|filename"}</label> <label class="col-sm-2 control-label">{lang t="files|current_file"}</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input class="form-control" type="text" value="{$current_file}" disabled="disabled"> <div class="form-control-static">{$current_file}</div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
......
...@@ -10,10 +10,12 @@ ...@@ -10,10 +10,12 @@
<item key="admin_index_edit">Download bearbeiten</item> <item key="admin_index_edit">Download bearbeiten</item>
<item key="admin_index_settings">Einstellungen</item> <item key="admin_index_settings">Einstellungen</item>
<item key="category_select">Bitte wählen Sie eine der untenstehenden Kategorien aus.</item> <item key="category_select">Bitte wählen Sie eine der untenstehenden Kategorien aus.</item>
<item key="current_file">Aktuelle Datei</item>
<item key="description_to_short">Der Beschreibungstext sollte mindestens 3 Zeichen lang sein.</item> <item key="description_to_short">Der Beschreibungstext sollte mindestens 3 Zeichen lang sein.</item>
<item key="details">Downloads</item> <item key="details">Downloads</item>
<item key="download_file">Datei herunterladen</item> <item key="download_file">Datei herunterladen</item>
<item key="external_resource">Externe Quelle</item> <item key="external_resource">Externe Quelle</item>
<item key="file">Datei</item>
<item key="file_statements">Dateiangaben</item> <item key="file_statements">Dateiangaben</item>
<item key="filename">Dateiname</item> <item key="filename">Dateiname</item>
<item key="files">Downloads</item> <item key="files">Downloads</item>
...@@ -21,9 +23,7 @@ ...@@ -21,9 +23,7 @@
<item key="latest_files">Aktuelle Downloads</item> <item key="latest_files">Aktuelle Downloads</item>
<item key="mod_description">Mit diesem Modul können die Downloads verwaltet werden.</item> <item key="mod_description">Mit diesem Modul können die Downloads verwaltet werden.</item>
<item key="new_file">Neue Datei angeben</item> <item key="new_file">Neue Datei angeben</item>
<item key="select_allow_comments">Bitte wählen Sie aus, ob Kommentare unter Downloads zugelassen werden sollen oder <item key="select_allow_comments">Bitte wählen Sie aus, ob Kommentare unter Downloads zugelassen werden sollen oder nicht.</item>
nicht.
</item>
<item key="select_category">Bitte wählen Sie die Kategorie aus, in der sich der Download befinden soll.</item> <item key="select_category">Bitte wählen Sie die Kategorie aus, in der sich der Download befinden soll.</item>
<item key="select_internal_resource">Bitte geben Sie den Pfad zur hochzuladenden Datei an.</item> <item key="select_internal_resource">Bitte geben Sie den Pfad zur hochzuladenden Datei an.</item>
<item key="title">Titel</item> <item key="title">Titel</item>
......
...@@ -10,21 +10,23 @@ ...@@ -10,21 +10,23 @@
<item key="admin_index_edit">Edit download</item> <item key="admin_index_edit">Edit download</item>
<item key="admin_index_settings">Settings</item> <item key="admin_index_settings">Settings</item>
<item key="category_select">Please select one of the categories below.</item> <item key="category_select">Please select one of the categories below.</item>
<item key="current_file">Current file</item>
<item key="description_to_short">The description should be at least 3 characters long.</item> <item key="description_to_short">The description should be at least 3 characters long.</item>
<item key="details">Downloads</item> <item key="details">Downloads</item>
<item key="download_file">Download file</item> <item key="download_file">Download file</item>
<item key="external_resource">External resource</item> <item key="external_resource">External resource</item>
<item key="file">File</item>
<item key="file_statements">File statements</item> <item key="file_statements">File statements</item>
<item key="filename">Filename</item> <item key="filename">Filename</item>
<item key="files">Downloads</item> <item key="files">Downloads</item>
<item key="filesize">Filesize</item> <item key="filesize">Filesize</item>
<item key="latest_files">Latest downloads</item> <item key="latest_files">Latest downloads</item>
<item key="title">Title</item>
<item key="mod_description">With this module you are able to administer the downloads.</item> <item key="mod_description">With this module you are able to administer the downloads.</item>
<item key="new_file">Replace current file</item> <item key="new_file">Replace current file</item>
<item key="select_allow_comments">Please select whether you want to allow comments under downloads or not.</item> <item key="select_allow_comments">Please select whether you want to allow comments under downloads or not.</item>
<item key="select_category">Please select a category where do you want to find the download.</item> <item key="select_category">Please select a category where do you want to find the download.</item>
<item key="select_internal_resource">Please select the path to the file you want to upload.</item> <item key="select_internal_resource">Please select the path to the file you want to upload.</item>
<item key="title">Title</item>
<item key="type_in_external_resource">Please type in the external resource for the file.</item> <item key="type_in_external_resource">Please type in the external resource for the file.</item>
<item key="type_in_title">The title should be at least 3 characters long.</item> <item key="type_in_title">The title should be at least 3 characters long.</item>
<item key="unknown_filesize">Unknown filesize</item> <item key="unknown_filesize">Unknown filesize</item>
......
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div id="tab-1" class="tab-pane fade in active"> <div id="tab-1" class="tab-pane fade in active">
<table class="table table-striped table-hover"> <table class="table table-striped table-hover datagrid">
<thead> <thead>
<tr> <tr>
<th>{lang t="system|module_name"}</th> <th>{lang t="system|module_name"}</th>
<th>{lang t="system|description"}</th> <th>{lang t="system|description"}</th>
<th>{lang t="system|version"}</th> <th>{lang t="system|version"}</th>
<th>{lang t="system|author"}</th> <th>{lang t="system|author"}</th>
<th style="width:20%">{lang t="system|options"}</th> <th class="datagrid-column__actions">{lang t="system|action"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -30,35 +30,33 @@ ...@@ -30,35 +30,33 @@
{if $row.protected === true} {if $row.protected === true}
<i class="glyphicon glyphicon-remove-circle text-danger" title="{lang t="system|protected_module_description"}"></i> <i class="glyphicon glyphicon-remove-circle text-danger" title="{lang t="system|protected_module_description"}"></i>
{else} {else}
<div class="btn-group text-nowrap"> {if $row.active === true}
{if $row.active === true} <a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_deactivate"}"
<a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_deactivate"}" class="btn btn-block btn-default btn-xs"
class="btn btn-default btn-sm" title="{lang t="system|disable_module"}"
title="{lang t="system|disable_module"}"
data-ajax-form="true"
data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<i class="glyphicon glyphicon-remove"></i>
{lang t="system|disable"}
</a>
{else}
<a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_activate"}"
class="btn btn-default btn-sm"
title="{lang t="system|enable_module"}"
data-ajax-form="true"
data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<i class="glyphicon glyphicon-ok"></i>
{lang t="system|enable"}
</a>
{/if}
<a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_uninstall"}"
class="btn btn-default btn-sm"
title="{lang t="system|uninstall_module"}"
data-ajax-form="true" data-ajax-form="true"
data-ajax-form-loading-text="{lang t="system|loading_please_wait"}"> data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<i class="glyphicon glyphicon-off"></i> <i class="glyphicon glyphicon-remove"></i>
{lang t="system|uninstall"} {lang t="system|disable"}
</a> </a>
</div> {else}
<a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_activate"}"
class="btn btn-block btn-primary btn-xs"
title="{lang t="system|enable_module"}"
data-ajax-form="true"
data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<i class="glyphicon glyphicon-ok"></i>
{lang t="system|enable"}
</a>
{/if}
<a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_uninstall"}"
class="btn btn-block btn-danger btn-xs"
title="{lang t="system|uninstall_module"}"
data-ajax-form="true"
data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<i class="glyphicon glyphicon-off"></i>
{lang t="system|uninstall"}
</a>
{/if} {/if}
</td> </td>
</tr> </tr>
...@@ -68,14 +66,14 @@ ...@@ -68,14 +66,14 @@
</div> </div>
<div id="tab-2" class="tab-pane fade"> <div id="tab-2" class="tab-pane fade">
{if !empty($new_modules)} {if !empty($new_modules)}
<table class="table table-striped table-hover"> <table class="table table-striped table-hover datagrid">
<thead> <thead>
<tr> <tr>
<th>{lang t="system|module_name"}</th> <th>{lang t="system|module_name"}</th>
<th>{lang t="system|description"}</th> <th>{lang t="system|description"}</th>
<th>{lang t="system|version"}</th> <th>{lang t="system|version"}</th>
<th>{lang t="system|author"}</th> <th>{lang t="system|author"}</th>
<th>{lang t="system|options"}</th> <th class="datagrid-column__actions">{lang t="system|action"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -87,7 +85,7 @@ ...@@ -87,7 +85,7 @@
<td>{$row.author}</td> <td>{$row.author}</td>
<td> <td>
<a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_install"}" <a href="{uri args="acp/system/extensions/modules/dir_`$row.dir`/action_install"}"
class="btn btn-default btn-sm" class="btn btn-block btn-success btn-xs"
title="{lang t="system|install_module"}" title="{lang t="system|install_module"}"
data-ajax-form="true" data-ajax-form="true"
data-ajax-form-loading-text="{lang t="system|loading_please_wait"}"> data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment