Commit 08e493c3 by Tuomas Riihimäki

restore entry submitting UI

1 parent 59f3579c
Showing with 18 additions and 15 deletions
...@@ -14,12 +14,15 @@ ...@@ -14,12 +14,15 @@
<ui:define name="content"> <ui:define name="content">
<!-- <h:outputStylesheet library="style" name="insomnia2/css/actionlog.css" /> --> <!-- <h:outputStylesheet library="style" name="insomnia2/css/actionlog.css" /> -->
<h1>#{i18n['voting.compoentryadd.title']}</h1> <h1>#{i18n['voting.compoentryadd.title']}</h1>
<p>#{i18n['voting.compoentryadd.description']}<h:outputText value="#{compoView.compo.name}" /></p> <p>
<p> #{i18n['voting.compoentryadd.description']}
<h:outputText value="#{compoView.compo.description}" /> <h:outputText value="#{compoView.compo.name}" />
</p> </p>
<p>
<h:outputText value="#{compoView.compo.description}" />
</p>
<h:form> <h:form>
<!-- <h:panelGrid columns="3"> <h:panelGrid columns="3">
<h:outputLabel value="Title" for="name" /> <h:outputLabel value="Title" for="name" />
<h:inputText value="#{compoView.entry.title}" id="name" /> <h:inputText value="#{compoView.entry.title}" id="name" />
<h:message for="name" /> <h:message for="name" />
...@@ -36,17 +39,17 @@ ...@@ -36,17 +39,17 @@
<h:inputTextarea value="#{compoView.entry.screenMessage}" id="screenmessage" /> <h:inputTextarea value="#{compoView.entry.screenMessage}" id="screenmessage" />
<h:message for="screenmessage" /> <h:message for="screenmessage" />
<h:commandButton rendered="#{empty compoView.entry.id}" action="#{compoView.createEntry()}" value="#{i18n['voting.compoentryadd.button']}" /> <h:commandButton rendered="#{empty compoView.entry.id}" action="#{compoView.createEntry()}" value="#{i18n['voting.compoentryadd.button']}" />
<h:commandButton rendered="#{!empty compoView.entry.id}" action="#{compoView.saveEntry()}" value="#{i18n['voting.compoentrysave.button']}" /> <h:commandButton rendered="#{!empty compoView.entry.id}" action="#{compoView.saveEntry()}" value="#{i18n['voting.compoentrysave.button']}" />
</h:panelGrid> </h:panelGrid>
-->
<h:commandButton rendered="#{empty compoView.entry.id}" action="#{compoView.createEntry()}" value="Ilmoittaudu kilpailuun" /> <h:commandButton rendered="#{empty compoView.entry.id}" action="#{compoView.createEntry()}" value="Ilmoittaudu kilpailuun" />
</h:form> </h:form>
<ui:fragment rendered="#{!empty compoView.entry.id}"> <ui:fragment rendered="#{!empty compoView.entry.id}">
<!-- <h:form enctype="multipart/form-data"> <h:form enctype="multipart/form-data">
<p:fileUpload value="#{compoView.uploadedFile}" id="uploadedfile" mode="simple" /> <p:fileUpload value="#{compoView.uploadedFile}" id="uploadedfile" mode="simple" />
<h:commandButton action="#{compoView.submitEntryfile}" value="#{i18n['compofile.upload']}" /> <h:commandButton action="#{compoView.submitEntryfile}" value="#{i18n['compofile.upload']}" />
</h:form> </h:form>
...@@ -61,8 +64,8 @@ ...@@ -61,8 +64,8 @@
<p:fileDownload value="#{compoFileDownloadView.dlfile}" /> <p:fileDownload value="#{compoFileDownloadView.dlfile}" />
</h:commandButton> </h:commandButton>
</h:form> </h:form>
-->
Ilmoittautuminen otettu vastaan. <!-- Ilmoittautuminen otettu vastaan.-->
</ui:fragment> </ui:fragment>
</ui:define> </ui:define>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!