CaseType UI styling improvements
authorColeman Watts <coleman@civicrm.org>
Mon, 27 Apr 2015 17:41:52 +0000 (11:41 -0600)
committerColeman Watts <coleman@civicrm.org>
Mon, 25 May 2015 15:43:40 +0000 (11:43 -0400)
ang/crmCaseType.css
ang/crmCaseType.js
ang/crmCaseType/activitySetDetails.html
ang/crmCaseType/activityTypesTable.html
ang/crmCaseType/rolesTable.html
ang/crmCaseType/sequenceTable.html
ang/crmCaseType/timelineTable.html

index b6035ebfed74f25bb04c97e8cb2006d1cc233575..b149493706575141976bfb642494b60060843704 100644 (file)
@@ -18,7 +18,6 @@
 .crmCaseType tr.addRow td {
     background: #ddddff;
     padding: 0.5em 1em;
-    text-align: center;
 }
 
 .crmCaseType input.number {
index d7b9b2086a3a0af538c66f4840fe3faa75ea0d32..8174e43c1b0a4ff513a068d813262fdb200709ca 100644 (file)
@@ -82,7 +82,7 @@
   crmCaseType.directive('crmAddName', function() {
     return {
       restrict: 'AE',
-      template: '<input class="add-activity" type="hidden" />',
+      template: '<input class="add-activity crm-action-menu action-icon-plus" type="hidden" />',
       link: function(scope, element, attrs) {
         /// Format list of options for select2's "data"
         var getFormattedOptions = function() {
           data: getFormattedOptions,
           createSearchChoice: function(term) {
             return {id: term, text: term};
-          }
+          },
+          placeholder: attrs.placeholder
         });
         $(input).on('select2-selecting', function(e) {
           scope[attrs.crmVar] = e.val;
     $scope.activityStatuses = _.values(apiCalls.actStatuses.values);
     $scope.activityTypes = apiCalls.actTypes.values;
     $scope.activityTypeNames = _.pluck(apiCalls.actTypes.values, 'name');
+    $scope.activityTypes = apiCalls.actTypes.values;
     $scope.relationshipTypeNames = _.pluck(apiCalls.relTypes.values, CRM.crmCaseType.REL_TYPE_CNAME); // CRM_Case_XMLProcessor::REL_TYPE_CNAME
     $scope.locks = {caseTypeName: true, activitySetName: true};
 
index 44a6c061b9c42bbfa240aad06b30349c255bca22..58701a19a3e7cd141bc6434f739939abe5ed17ce 100644 (file)
@@ -7,13 +7,13 @@ Required vars: activitySet
   <tr>
     <td class="label">{{ts('Label')}}</td>
     <td>
-      <input type="text" name="label" ng-model="activitySet.label"/>
+      <input type="text" name="label" class="crm-form-text" ng-model="activitySet.label"/>
     </td>
   </tr>
   <tr>
     <td class="label">{{ts('Name')}}</td>
     <td>
-      <input type="text" name="name" ng-model="activitySet.name" ng-disabled="locks.activitySetName" />
+      <input type="text" name="name" class="crm-form-text" ng-model="activitySet.name" ng-disabled="locks.activitySetName" />
       <a crm-ui-lock binding="locks.activitySetName"></a>
 
     </td>
index a721292472bc68b67b82588044fa2a5ef2a13cce..d603527cde6d6a100b9c4c443ac66a43c785fbd5 100644 (file)
@@ -29,11 +29,11 @@ Required vars: caseType
   <tfoot>
   <tr class="addRow">
     <td colspan="3">
-      {{ts('Add activity type:')}}
       <span crm-add-name
            crm-options="activityTypeNames"
            crm-var="newActivity"
            crm-on-add="addActivityType(newActivity)"
+           placeholder="{{ts('Add activity type')}}"
               />
     </td>
   </tr>
index a0ffdda3fa85ab28b2909679ba6119d4d5522826..98d8c80d18a3a590c649dc997c4029ee8401700c 100644 (file)
@@ -25,11 +25,11 @@ Required vars: caseType
   <tfoot>
          <tr class="addRow">
            <td colspan="4">
-             {{ts('Add role:')}}
              <span crm-add-name
                   crm-options="relationshipTypeNames"
                   crm-var="newRole"
                   crm-on-add="addRole(caseType.definition.caseRoles, newRole)"
+             placeholder="{{ts('Add role')}}"
                      />
            </td>
          </tr>
index a472078f4103cbfc5a93b7ae369d44fd4ecf7e95..2b7372c499570c7f2084c89fdd3a7ae9f621545e 100644 (file)
@@ -25,11 +25,11 @@ Required vars: activitySet
   <tfoot>
   <tr class="addRow">
     <td colspan="3">
-      {{ts('Add activity:')}}
       <span crm-add-name
            crm-options="activityTypeNames"
            crm-var="newActivity"
            crm-on-add="addActivity(activitySet, newActivity)"
+           placeholder="{{ts('Add activity')}}"
               />
     </td>
   </tr>
index b05a816903ef5595751f25ac8d6456101ea6501e..94d2cc2a7f9aa282c7e0c230da56bb097b4f8929 100644 (file)
@@ -76,11 +76,11 @@ Required vars: activitySet
   <tfoot>
   <tr class="addRow">
     <td colspan="6">
-      {{ts('Add activity:')}}
       <span crm-add-name
            crm-options="activityTypeNames"
            crm-var="newActivity"
            crm-on-add="addActivity(activitySet, newActivity)"
+           placeholder="{{ts('Add activity')}}"
               />
     </td>
   </tr>