Permalink
Browse files

Merge branch 'master' of github.com:redhead/WeTK.git

  • Loading branch information...
2 parents eff016a + 3505660 commit 3ab33c94f6bff385d151edc1eed5f8e502ab2c02 @redhead committed Apr 10, 2012
Showing with 100 additions and 1 deletion.
  1. +7 −1 WeTK-war/src/java/org/wetk/translation_cs.properties
  2. +93 −0 WeTK-war/web/admin_lessons.xhtml
@@ -30,14 +30,20 @@ class_message_teacherRequired=Je nutn\u00e9 vybrat t\u0159\u00eddn\u00edho u\u01
message_leaveBlank=Nevypl\u0148ujte pokud nechcete heslo m\u011bnit
message_confirmDelete=Opravdu chcete odstranit z\u00e1znam?
+message_classRequired=Je nutn\u00e9 vybrat t\u0159\u00eddu
+message_assignRequired=Je nutn\u00e9 vybrat p\u0159i\u0159azen\u00ed
+
+lesson_day=Den
subject_title=N\u00e1zev
subject_code=K\u00f3d p\u0159edm\u011btu
assignment_teacher=U\u010ditel
-assignment_subject=Rozvrh
+assignment_subject=P\u0159edm\u011bt
layout_title=Elektronick\u00e1 t\u0159\u00eddn\u00ed kniha
layout_CBShortcut=TK
layout_lessonEntry=Z\u00e1pis hodiny
layout_logout=Odhl\u00e1\u0161en\u00ed
+
+assignment_assignment=P\u0159edm\u011bt, u\u010ditel
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:p="http://primefaces.prime.com.tr/ui">
+
+ <h:body>
+ <ui:composition template="templates/layout.xhtml">
+ <ui:define name="content">
+ <h2>#{msgs.administration_lessons}</h2>
+
+ <f:view>
+ <h:form class="form-horizontal">
+ <fieldset>
+ <h:inputHidden id="id" value="#{lessons.lesson.id}" />
+ <div class="control-group">
+ <h:outputLabel for="class" value="#{msgs.class_class}" class="control-label" />
+ <div class="controls">
+ <h:selectOneMenu id="class" value="#{lessons.classTitle}" class="span1" required="true" requiredMessage="#{msgs.message_classRequired}">
+ <f:selectItem itemValue="" itemLabel="" />
+ <f:selectItems value="#{classes.selectItems}" />
+ </h:selectOneMenu>
+ </div>
+ </div>
+ <div class="control-group">
+ <h:outputLabel for="class" value="#{msgs.assignment_assignment}" class="control-label" />
+ <div class="controls">
+ <h:selectOneMenu id="class" value="#{lessons.title}" class="span1" required="true" requiredMessage="#{msgs.message_assignRequired}">
+ <f:selectItem itemValue="" itemLabel="" />
+ <f:selectItems value="#{assignments.selectItems}" />
+ </h:selectOneMenu>
+ </div>
+ </div>
+ <div class="control-group">
+ <h:outputLabel for="ordinal" value="#{msgs.lesson_day}" class="control-label" />
+ <div class="controls">
+ <h:inputText id="ordinal" value="#{lessons.lesson.day}" class="span1" />
+ </div>
+ </div>
+ <div class="control-group">
+ <h:outputLabel for="ordinal" value="#{msgs.lesson_hour}" class="control-label" />
+ <div class="controls">
+ <h:inputText id="ordinal" value="#{lessons.lesson.hour}" class="span1" />
+ </div>
+ </div>
+ <div class="form-actions">
+ <h:commandButton value="#{msgs.action_save}" action="#{lessons.saveLesson}" class="btn btn-large btn-success" />
+ <h:commandButton value="#{msgs.action_reset}" type="reset" class="btn btn-large btn-action" />
+ </div>
+ </fieldset>
+ </h:form>
+
+ <h:form>
+ <h:dataTable value="#{lessons.lessons}" var="item" class="table table-striped table-bordered table-condensed">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value=""/>
+ </f:facet>
+ <h:commandButton action="#{lessons.delete(item.id)}" value="#{msgs.action_delete}" class="btn-mini btn btn-danger" onclick="return confirm('#{msgs.message_confirmDelete}')" />
+ <h:commandButton action="#{lessons.edit(item.id)}" value="#{msgs.action_edit}" class="btn-mini btn" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.teacher_username}" />
+ </f:facet>
+ <h:outputText value="#{item.username}" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.person_fullName}"/>
+ </f:facet>
+ <h:outputText value="#{item.fullName}"/>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.person_email}"/>
+ </f:facet>
+ <h:outputText value="#{item.email}"/>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+
+
+ </f:view>
+
+ </ui:define>
+ </ui:composition>
+ </h:body>
+
+</html>

0 comments on commit 3ab33c9

Please sign in to comment.