Ignore:
Timestamp:
06/29/12 19:56:22 (13 years ago)
Author:
tjcschipper
Message:
  • Finally fixed icon offsets and added a couple new icons for use in the Question/Survey? editors,as well as general purpose ones.
  • Styled the dropdown menu in the MainMenu?
  • Fixed a weird offset bug in the IndexMenu?
  • Included another way of colouring objects by their parent classes, not applied yet (in layout.css)
  • Styled the AccordionContainer?, to be used in Survey/Question? editors.
  • Removed default colour in LineWithActionsWidgetThijs?, this would override the colours inherited from parent elements (not desirable).
  • Drank a lot of coffee.
Location:
Dev/branches/rest-dojo-ui/client/rft/ui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidgetThijs.js

    r342 r349  
    1 define(['dojo/_base/declare','dojo/_base/lang','dojo/on','dojo/dom', 'dojo/dom-class', 'dijit/form/Button',
    2     'dijit/_WidgetBase','dijit/_TemplatedMixin','dijit/_WidgetsInTemplateMixin',
     1define([
     2    'dojo/_base/declare',
     3    'dojo/_base/lang',
     4    'dojo/on',
     5    'dojo/dom',
     6    'dojo/dom-class',
     7    'dijit/form/Button',
     8    'dijit/_WidgetBase',
     9    'dijit/_TemplatedMixin',
     10    'dijit/_WidgetsInTemplateMixin',
    311    'dojo/text!./templates/LineWithActionsWidget.html'
    412    ],
    5     function(declare,lang,on,dom,domClass,Button,_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin,templateString){
     13    function(
     14        declare,
     15        lang,
     16        on,
     17        dom,
     18        domClass,
     19        Button,
     20        _WidgetBase,
     21        _TemplatedMixin,
     22        _WidgetsInTemplateMixin,
     23        templateString) {
    624        return declare('rft.ui.LineWithActionsWidgetThijs',[_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin],{
     25
    726            templateString: templateString,
    827            baseClass: 'rftLineWithButtons',
    928            title: '',
    10             modifiers: "blue",
     29            modifiers: "",
    1130            userObject: null,
    1231            actions: {},
     32           
    1333            postCreate: function() {
    1434                dom.setSelectable(this.domNode, false);
     
    2343            _setupActions: function() {
    2444                for (var action in this.actions) {
    25                    
     45
    2646                    if (this.actions[action].properties.blockButton == true) {  // BlockButton
    2747                        var properties = lang.mixin({
     
    5171            },
    5272            refresh: function() {
     73
    5374                this.titleNode.innerHTML = this.title;
    5475            },
     
    6687            }
    6788        });
    68     });
     89});
  • Dev/branches/rest-dojo-ui/client/rft/ui/ObjectBox.js

    r346 r349  
    6060                            label: "Edit/View",
    6161                            modifiers: "trans",
    62                             icon: "Settings"
     62                            icon: "Edit"
    6363                        }
    6464                    };
     
    9393            _setObjectReference: function(identifier) {
    9494            // TODO: Set this ObjectBox to refer to a certain database object
    95             },
    96             _getObjectInfo: function() {
     95        },
     96        _getObjectInfo: function() {
    9797            // TODO: Query the database and retrieve a JSON array of object properties
    98             },
    99             _inspectObject: function() {
     98        },
     99        _inspectObject: function() {
    100100            // TODO: Get object information (or retrieve from cache), then display in popup
    101             },
    102             _editObject: function(customFunction) {
     101        },
     102        _editObject: function(customFunction) {
    103103                // TODO: Pass an edit call to the page script, along with reference to the object contained in this ObjectBox
    104104                alert("Default edit code");
     
    138138             * TODO: Check with Hendrik if I should do this or not!
    139139             * */
    140             CreateNew: function(arguments, reference, location) {
     140             CreateNew: function(arguments, reference, location) {
    141141                var newBox = new rft.ui.ObjectBox(arguments);
    142142                newBox.startup();
     
    144144            }
    145145        });
    146     });
     146});
  • Dev/branches/rest-dojo-ui/client/rft/ui/templates/MainMenu.html

    r344 r349  
    55            <span>Content</span>
    66            <div data-dojo-type="dijit.DropDownMenu">
    7                 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'surveys'">Surveys</div>
    8                 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'questions'">Questions</div>
    9                 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'applications'">Applications</div>
    10                 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'dashboards'">Dashboards</div>
     7                <div data-dojo-type="rft.ui.MenuLink" class="blue" data-dojo-props="pageId:'surveys', iconClass:'rftIcon rftIconSurvey'">Surveys</div>
     8                <div data-dojo-type="rft.ui.MenuLink" class="orange" data-dojo-props="pageId:'questions', iconClass:'rftIcon rftIconQuestion'">Questions</div>
     9                <div data-dojo-type="rft.ui.MenuLink" class="purple" data-dojo-props="pageId:'applications', iconClass: 'rftIcon rftIconApplication'">Applications</div>
     10                <div data-dojo-type="rft.ui.MenuLink" class="red" data-dojo-props="pageId:'dashboards', iconClass: 'rftIcon rftIconDashboard'">Dashboards</div>
    1111            </div>
    1212        </div>
Note: See TracChangeset for help on using the changeset viewer.