Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-10-16 18:52:52 +0300
committerbrantje <brantje@gmail.com>2016-10-16 19:08:59 +0300
commit1a4c1346cccc2b5930834fe87d9d434af8f408b0 (patch)
tree37a0bb4a28ca99fadde9bf04537dc3b3c2b94132 /templates
parent94d4f309487e066c55ed154dfe894303520cae80 (diff)
Better searchbox behaviour.
Add a clear icon.
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php1
-rw-r--r--templates/views/show_vault.html51
2 files changed, 26 insertions, 26 deletions
diff --git a/templates/main.php b/templates/main.php
index 2076192f..e3c963d4 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -68,6 +68,7 @@ script('passman', 'app/directives/ngenter');
script('passman', 'app/directives/autoscroll');
script('passman', 'app/directives/clickselect');
script('passman', 'app/directives/colorfromstring');
+script('passman', 'app/directives/clearbutton2');
script('passman', 'importers/import-main');
script('passman', 'importers/importer-keepasscsv');
script('passman', 'importers/importer-lastpasscsv');
diff --git a/templates/views/show_vault.html b/templates/views/show_vault.html
index 691c068a..06eecd36 100644
--- a/templates/views/show_vault.html
+++ b/templates/views/show_vault.html
@@ -1,41 +1,40 @@
-<div id="passman-controls">
- <div class="breadcrumb">
+<div off-click="closeSelected()" off-click-filter="'.download-js-link, .sidebar-shown'">
+ <div id="passman-controls" ng-class="{ 'sidebar-shown': selectedCredential }">
<div class="breadcrumb">
- <div class="crumb svg ui-droppable" data-dir="/">
- <a><i class="fa fa-home"></i></a>
- </div>
- <div class="crumb svg last">
- <a>{{active_vault.name}}</a>
+ <div class="breadcrumb">
+ <div class="crumb svg ui-droppable" data-dir="/">
+ <a><i class="fa fa-home"></i></a>
+ </div>
+ <div class="crumb svg last">
+ <a>{{active_vault.name}}</a>
+ </div>
</div>
</div>
- </div>
- <span class="title" ng-if="delete_time">
+ <span class="title" ng-if="delete_time">
Showing deleted since:
<span ng-if="delete_time == 1">All time</span>
<span ng-if="delete_time > 1">{{delete_time | date:'dd-MM-yyyy @ HH:mm:ss'}}</span>
</span>
- <div class="actions creatable">
+ <div class="actions creatable">
<span ng-click="addCredential()" class="button new">
<span >+</span></span>
- </div>
- <div class="title" ng-show="filtered_credentials.length > 0">
- Showing {{filtered_credentials.length}} of {{active_vault.credentials.length - 1}} credentials
- </div>
- <div class="searchboxContainer">
- <input type="text" ng-model="filterOptions.filterText" class="searchbox"
- placeholder="Search credential..." select-on-click>
- </div>
- <div class="viewModes">
- <div class="view-mode" ng-class="{'active': view_mode === 'list' }"
- ng-click="switchViewMode('list')"><i class="fa fa-list"></i></div>
- <div class="view-mode" ng-class="{'active': view_mode === 'grid' }"
- ng-click="switchViewMode('grid')"><i class="fa fa-th-large"></i>
+ </div>
+ <div class="title" ng-show="filtered_credentials.length > 0">
+ Showing {{filtered_credentials.length}} of {{active_vault.credentials.length - 1}} credentials
+ </div>
+ <div class="searchboxContainer">
+ <input type="text" ng-model="filterOptions.filterText" class="searchbox"
+ placeholder="Search credential..." select-on-click clear-btn>
+ </div>
+ <div class="viewModes">
+ <div class="view-mode" ng-class="{'active': view_mode === 'list' }"
+ ng-click="switchViewMode('list')"><i class="fa fa-list"></i></div>
+ <div class="view-mode" ng-class="{'active': view_mode === 'grid' }"
+ ng-click="switchViewMode('grid')"><i class="fa fa-th-large"></i>
+ </div>
</div>
</div>
-</div>
-<div off-click="closeSelected()" off-click-filter="'.download-js-link'">
-
<div class="loaderContainer" ng-if="show_spinner">
<div class="loader" use-theme type="'border-bottom-color'"></div>
</div>