Talar97

Upload widok

Feb 23rd, 2020
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.      xmlns:ui="http://java.sun.com/jsf/facelets"
  5.      xmlns:h="http://java.sun.com/jsf/html"
  6.      xmlns:f="http://java.sun.com/jsf/core"
  7.      xmlns:p="http://primefaces.org/ui">
  8.  
  9. <ui:composition template="/templates/main-template.xhtml">
  10.     <ui:define name="additionalStyles">
  11.         <h:outputStylesheet name="user.css" library="styles" />
  12.     </ui:define>
  13.     <ui:define name="title">
  14.         Wgrywanie nowych plików - Package Manager
  15.     </ui:define>
  16.  
  17.     <ui:define name="content">
  18.         <div class="ui-g-12 content">
  19.         <div class="ui-g-4 ui-sm-12 content-item-box">
  20.                 <div class="content-item">
  21.                     <ui:insert name="lastRegistered">
  22.                         <ui:include src="/templates/file_list/search-form.xhtml" />
  23.                     </ui:insert>
  24.                 </div>
  25.             </div>
  26.             <div class="ui-g-8 ui-sm-12 content-item-box">
  27.                 <div class="content-item">
  28.                     <div class="titlebar">
  29.                         Wgraj nowe oprogramowanie
  30.                     </div>
  31.                     <div class="module-content">
  32.                        <h:form enctype="multipart/form-data">
  33.                             <p:growl id="userMessage" showDetail="false" sticky="false"/>
  34.                             <h:panelGrid columns="2" cellpadding="5"
  35.                                 styleClass="userCreateTable">
  36.                                 <h:outputText value="Wybierz plik/pliki" />
  37.                                 <p:fileUpload value="#{fileListUploadBB.file}" label="Wybierz" mode="simple" skinSimple="true"
  38.                                 required="true" requiredMessage="Nie wybrałeś pliku!" />
  39.                                
  40.                                 <h:outputText value="Nazwa " />
  41.                                 <p:inputText placeholder="Nazwa" value="#{fileListUploadBB.fileList.name}" required="true"
  42.                                     requiredMessage="Nazwa jest wymagana!"/>
  43.                                    
  44.                                 <h:outputText value="Wersja: " />
  45.                                 <p:inputText placeholder="Wersja pliku" value="#{fileListUploadBB.fileList.version}" required="true"
  46.                                     requiredMessage="Wersja jest wymagana!"/>      
  47.                                
  48.                                 <h:outputText value="Opis " />
  49.                                 <p:textEditor widgetVar="editor1" value="#{fileListUploadBB.fileList.description}"  height="300" style="margin-bottom:10px"/>
  50.    
  51.                             </h:panelGrid>
  52.                             <p:commandButton value="Dodaj" icon="pi pi-check" action="#{fileListUploadBB.upload()}" ajax="false" update="userMessage"/>
  53.                         </h:form>
  54.                     </div>
  55.                 </div>
  56.             </div>
  57.         </div>
  58.     </ui:define>
  59. </ui:composition>
  60. </html>
Add Comment
Please, Sign In to add comment