Tempus: die zu verplanenden Lehreinheiten sind jetzt farblich markiert

This commit is contained in:
Andreas Österreicher
2010-02-15 12:12:22 +00:00
parent 874f60efdf
commit 3bc8dfbd6e
3 changed files with 29 additions and 4 deletions
+9
View File
@@ -1,4 +1,13 @@
box.Datum
{
-moz-binding: url('bindings.xml.php#Datum');
}
hbox.StyleBox
{
-moz-binding: url('bindings.xml.php#StyleBox');
}
vbox.StyleBox
{
-moz-binding: url('bindings.xml.php#StyleBox');
}
+14 -1
View File
@@ -40,7 +40,7 @@
<xul:spacer flex="1"/>
<xul:menulist anonid="binding-menulist-field" style="padding: 1px" editable="true" xbl:inherits="disabled, value" label="">
<xul:menupopup>
<xul:datepicker anonid="binding-datepicker-field"
<xul:my-datepicker anonid="binding-datepicker-field"
onselect="parentNode.parentNode.parentNode.parentNode.value=this.selection.currentDay+'.'+(parseInt(this.selection.currentMonth)+1)+'.'+this.selection.currentYear"/>
</xul:menupopup>
</xul:menulist>
@@ -130,4 +130,17 @@
</handler>
</handlers>
</binding>
<!--
Binding StyleBox
in einem Template kann der Style nicht aus einem RDF befuellt werden.
An diese Box kann ein Attribute mit Styles aus RDF uebergeben werden
-->
<binding id="StyleBox">
<content>
<xul:box xbl:inherits="label, tooltiptext, tooltip, value, style=mystyle, flex">
<children/>
</xul:box>
</content>
</binding>
</bindings>
+6 -3
View File
@@ -123,8 +123,9 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/lvplanung/stpl-details-overlay.xul
<column style="background-color:lightblue; border:1px solid black" />
</columns>
<rows>
<row style="background-color:lightgreen; border:1px solid black">
<hbox>
<row>
<hbox class="StyleBox" flex="1"
mystyle="background-color: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrfach_farbe">
<toolbarbutton
image="../skin/images/lvaSingle.png"
ondraggesture="nsDragAndDrop.startDrag(event,lvaObserver);"
@@ -142,7 +143,8 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/lvplanung/stpl-details-overlay.xul
tooltiptext="Vorschlag/Setzen MultiWeek"
/>
</hbox>
<hbox>
<hbox class="StyleBox" flex="1"
mystyle="background-color: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrfach_farbe">
<toolbarbutton
image="../skin/images/lvaSingleDel.png"
onclick="onLVAdoStpl(event);"
@@ -188,6 +190,7 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/lvplanung/stpl-details-overlay.xul
</row>
</rows>
</grid>
</rule>
</template>
</vbox>