diff --git a/www/addons/mod/data/controllers/index.js b/www/addons/mod/data/controllers/index.js index 8638d4ee982..258873390b1 100644 --- a/www/addons/mod/data/controllers/index.js +++ b/www/addons/mod/data/controllers/index.js @@ -395,6 +395,11 @@ angular.module('mm.addons.mod_data') $scope.searchEntries(0); }; + // Switches between advanced to normal search + $scope.switchAdvanced = function(enable) { + $scope.search.searchingAdvanced = enable; + }; + // Opens add entries form $scope.gotoAddEntries = function() { var stateParams = { diff --git a/www/addons/mod/data/scss/styles.scss b/www/addons/mod/data/scss/styles.scss index d1a9230dbce..f563d867542 100644 --- a/www/addons/mod/data/scss/styles.scss +++ b/www/addons/mod/data/scss/styles.scss @@ -19,6 +19,7 @@ td { padding-left: 2px; padding-right: 2px; + vertical-align: top; } } @@ -27,6 +28,9 @@ table { width: 100%; } + td { + vertical-align: top; + } textarea, input[type="text"], @@ -66,6 +70,22 @@ padding: 16px 0 16px 16px; } + mm-attachments + .item-stacked-label { + border-top: 0px; + padding: 0; + margin-right: 1px; + + ion-label { + margin: 0; + padding-left: 16px; + } + + input { + border: 0; + margin: 0; + } + } + mm-attachments .item { width: 100%; margin: -1px; @@ -76,10 +96,14 @@ margin-right: 1px; } - .item-select select { + .item-input.item-select { + margin-bottom: -6px; + + select { width: 100%; left: 0; max-width: none; + } } .item-input.mm-latlong { @@ -93,4 +117,8 @@ border: 0; } } + + .mm-item-has-rich-text-editor { + margin-right: 1px; + } } \ No newline at end of file diff --git a/www/addons/mod/data/templates/search-modal.html b/www/addons/mod/data/templates/search-modal.html index 88468aac721..8402fcd17a3 100644 --- a/www/addons/mod/data/templates/search-modal.html +++ b/www/addons/mod/data/templates/search-modal.html @@ -5,6 +5,10 @@

{{ 'mma.mod_data.search' | translate}}

+
+ {{ 'mma.mod_data.search' | translate}} + {{ 'mma.mod_data.advancedsearch' | translate }} +