File tree Expand file tree Collapse file tree 4 files changed +55
-4
lines changed Expand file tree Collapse file tree 4 files changed +55
-4
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,11 @@ angular.module('mm.addons.mod_data')
395395 $scope . searchEntries ( 0 ) ;
396396 } ;
397397
398+ // Switches between advanced to normal search
399+ $scope . switchAdvanced = function ( enable ) {
400+ $scope . search . searchingAdvanced = enable ;
401+ } ;
402+
398403 // Opens add entries form
399404 $scope . gotoAddEntries = function ( ) {
400405 var stateParams = {
Original file line number Diff line number Diff line change 1919 td {
2020 padding-left : 2px ;
2121 padding-right : 2px ;
22+ vertical-align : top ;
2223 }
2324}
2425
2728 table {
2829 width : 100% ;
2930 }
31+ td {
32+ vertical-align : top ;
33+ }
3034
3135 textarea ,
3236 input [type = " text" ],
6670 padding : 16px 0 16px 16px ;
6771 }
6872
73+ mm-attachments + .item-stacked-label {
74+ border-top : 0px ;
75+ padding : 0 ;
76+ margin-right : 1px ;
77+
78+ ion-label {
79+ margin : 0 ;
80+ padding-left : 16px ;
81+ }
82+
83+ input {
84+ border : 0 ;
85+ margin : 0 ;
86+ }
87+ }
88+
6989 mm-attachments .item {
7090 width : 100% ;
7191 margin : -1px ;
7696 margin-right : 1px ;
7797 }
7898
79- .item-select select {
99+ .item-input.item-select {
100+ margin-bottom : -6px ;
101+
102+ select {
80103 width : 100% ;
81104 left : 0 ;
82105 max-width : none ;
106+ }
83107 }
84108
85109 .item-input.mm-latlong {
93117 border : 0 ;
94118 }
95119 }
120+
121+ .mm-item-has-rich-text-editor {
122+ margin-right : 1px ;
123+ }
96124}
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ <h1 class="title">{{ 'mma.mod_data.search' | translate}}</h1>
55 < button class ="button button-icon ion-search " ng-click ="searchEntries(0) "> </ button >
66 </ ion-header-bar >
77 < ion-content >
8+ < div class ="tabs tabs-striped tabs-free mm-tabs-color ">
9+ < a class ="tab-item " ng-class ="{'active': !search.searchingAdvanced} " ng-click ="switchAdvanced(false) "> {{ 'mma.mod_data.search' | translate}}</ a >
10+ < a class ="tab-item " ng-class ="{'active': search.searchingAdvanced} " ng-click ="switchAdvanced(true) "> {{ 'mma.mod_data.advancedsearch' | translate }}</ a >
11+ </ div >
812 < div class ="list ">
913 < label class ="item item-input " ng-if ="!search.searchingAdvanced ">
1014 < input type ="text " placeholder ="{{ 'mma.mod_data.search' | translate}} " ng-model ="search.text ">
@@ -28,9 +32,6 @@ <h1 class="title">{{ 'mma.mod_data.search' | translate}}</h1>
2832 < ion-radio ng-model ="search.sortDirection " value ="ASC "> {{ 'mma.mod_data.ascending' | translate }}</ ion-radio >
2933 < ion-radio ng-model ="search.sortDirection " value ="DESC "> {{ 'mma.mod_data.descending' | translate }}</ ion-radio >
3034 </ ion-list >
31- < div ng-if ="advancedSearch " class ="item item-text-wrap ">
32- < ion-toggle ng-model ="search.searchingAdvanced " class ="item-borderless "> {{ 'mma.mod_data.advancedsearch' | translate }}</ ion-toggle >
33- </ div >
3435 < form id ="mma-mod_data-advanced-search-form " class ="padding " ng-if ="advancedSearch && search.searchingAdvanced ">
3536 < mm-format-text component ="{{component}} " component-id ="{{data.cmid}} " watch ="true ">
3637 {{ advancedSearch }}
Original file line number Diff line number Diff line change @@ -979,6 +979,23 @@ mm-timer {
979979 background : transparent ;
980980}
981981
982+ mm-multiple-select {
983+ cursor : pointer ;
984+
985+ .item-stacked-label {
986+ ion-label .input-label , p {
987+ padding-right : 30px ;
988+ white-space : normal ;
989+ }
990+ }
991+ .icon.ion-android-arrow-dropdown {
992+ font-size : 21px ;
993+ color : #999999 ;
994+ right : 5px ;
995+ }
996+
997+ }
998+
982999.button.mm-button-icon-small {
9831000 padding : 0 3px ;
9841001 min-height : $mm-button-icon-small-height ;
You can’t perform that action at this time.
0 commit comments