From c789485cdd4945ab2bd57a55cc7e6aa900390483 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Sat, 1 Feb 2014 23:51:43 +0000 Subject: [PATCH 1/3] Added `for` attributes to the labels and corresponding `id` attributes on the input fields. Swapped the "Max fieldsets" input to be a "number" (HTML5) type. --- app/views/archetype.config.html | 83 ++++++++++++++++++++------------- 1 file changed, 51 insertions(+), 32 deletions(-) diff --git a/app/views/archetype.config.html b/app/views/archetype.config.html index eb3fb77..d853aa2 100644 --- a/app/views/archetype.config.html +++ b/app/views/archetype.config.html @@ -6,27 +6,31 @@ - +
{{fieldset.label}}
- + +
- + +
- + +
- Select... + + Select...
-
+
    -
  • +
  • @@ -35,22 +39,28 @@
    {{property.label}}
    - + +
    - + +
    - + +
    - -
    -
    - + +
    - + + +
    +
    + +
  • @@ -60,45 +70,54 @@
- +
-
- + +
- +
- + +
- + +
- + +
- + +
- -
-
- + +
- + +
- + +
- + +
- - + + +
+
+ +
From b55a1a43249d87fe01b453ac4ceacc804001e915 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Sat, 1 Feb 2014 23:48:16 +0000 Subject: [PATCH 2/3] Prevalue editor CSS tweaks. General tightening up of the fields/properties. --- .gitignore | 1 + app/less/archetype.less | 90 +++++++++++++++++++++++------------------ 2 files changed, 51 insertions(+), 40 deletions(-) diff --git a/.gitignore b/.gitignore index fa14c32..002e772 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ ehthumbs.db Desktop.ini $RECYCLE.BIN/ +app/less/*.css dist/ node_modules/ pkg/tmp/ diff --git a/app/less/archetype.less b/app/less/archetype.less index 15172a5..c07f7de 100644 --- a/app/less/archetype.less +++ b/app/less/archetype.less @@ -100,14 +100,14 @@ .archetypeEditor .archetypeFieldsetToolbar { margin-bottom: 10px; overflow: hidden; -} -.archetypeEditor .archetypeFieldsetToolbar li { - float: left; - padding: 2px 4px; - margin-right: 10px; - border: 1px solid #ddd; - cursor: pointer; + li { + float: left; + padding: 2px 4px; + margin-right: 10px; + border: 1px solid #ddd; + cursor: pointer; + } } .archetypeEditor .archetypeFieldsetHeaderText{ @@ -150,41 +150,44 @@ .archetypeConfig .archetypeFieldsetWrapper{ border: 1px solid #ccc; - padding: 10px 5px; + padding: 10px; margin-bottom: 10px; } -.archetypeConfig .archetypeFieldsetOption input[type=text]{ - width: 600px; +.archetypeConfig .archetypeFieldsetOption{ + margin-bottom: 15px; + input[type=text]{ + width: 600px; + } } .archetypeConfig .archetypeDeveloperModel { + font-family: monospace; width: 88%; - margin-left: 30px; - height: 100px; + margin: 5px 10px 10px; + height: 130px; } -.archetypeConfig .archetypePropertiesWrapper{ +.archetypeConfig .archetypePropertiesWrapper { border: 1px solid #ddd; - padding: 10px; - margin: 10px; - margin-left: 50px; - width: 665px; -} + padding: 8px; + margin: -40px 10px 10px 140px; + width: 595px; -.archetypeConfig .archetypePropertiesWrapper ul{ - padding: 0; - margin: 0; -} + ul { + padding: 0; + margin: 0; + } -.archetypeConfig .archetypePropertiesWrapper li{ - padding: 10px; - margin-bottom: 10px; - background-color: #eee; -} + li { + padding: 10px; + margin-bottom: 10px; + background-color: #eee; + } -.archetypeConfig .archetypePropertiesWrapper li:last-child{ - margin-bottom: 0; + li:last-child { + margin-bottom: 0; + } } .archetypeConfig .archetypeFieldsets { @@ -192,33 +195,40 @@ } .archetypeConfig .archetypeFieldsetTitle { + cursor: pointer; overflow: hidden; } .archetypeConfig .archetypeOptions label{ - width: 200px; -} - -.archetypeConfig .archetypeAdvancedOptions label{ width: 400px; } -.archetypeConfig .archetypeDeveloperModel { - margin-bottom: 10px; +.archetypeConfig .archetypeAdvancedOptions { + margin-top: 15px; + div { + margin-bottom: 10px; + } + label { + width: 400px; + } } .archetypeConfig .archetypeMaxFieldsets{ border: 1px solid #ddd; - width: 25px; + width: 40px; text-align: right; } -.archetypeConfig .archetypePropertyTitle{ +.archetypeConfig .archetypePropertyTitle { + cursor: pointer; overflow: hidden; } .archetypeConfig .archetypePropertyCollapser{ margin-top: 10px; + div { + margin-bottom: 10px; + } } .archetypeEditor .archetypeFieldsetError{ @@ -239,10 +249,10 @@ background-color: #d0e7f1 !important; } -.archetypeConfig .archetypeFieldsetCollapser{ - margin-top: 5px; +.archetypeConfig .archetypeFieldsetCollapser { + margin-top: 15px; } -.archetypeConfig .fieldsetIcon{ +.archetypeConfig .fieldsetIcon { margin-right: 10px; } \ No newline at end of file From 4dc21b3e1828b69ab1e22d8fc7250cdfe0d3ee2b Mon Sep 17 00:00:00 2001 From: leekelleher Date: Sun, 2 Feb 2014 15:04:24 +0000 Subject: [PATCH 3/3] Fixed the `id`s for the fieldset labels - added the index/position. Corrected the nested repeater's `id`s with the context of the parent's index/position. --- app/views/archetype.config.html | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/app/views/archetype.config.html b/app/views/archetype.config.html index d853aa2..bf70139 100644 --- a/app/views/archetype.config.html +++ b/app/views/archetype.config.html @@ -10,19 +10,19 @@
{{fieldset.label}}
- - + +
- - + +
- - + +
- + Select...
@@ -39,28 +39,28 @@
{{property.label}}
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +