<!--
  ~ Copyright (C) 2000 - 2026 Silverpeas
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU Affero General Public License as
  ~ published by the Free Software Foundation, either version 3 of the
  ~ License, or (at your option) any later version.
  ~
  ~ As a special exception to the terms and conditions of version 3.0 of
  ~ the GPL, you may redistribute this Program in connection with Free/Libre
  ~ Open Source Software ("FLOSS") applications as described in Silverpeas's
  ~ FLOSS exception.  You should have received a copy of the text describing
  ~ the FLOSS exception, and it is also available here:
  ~ "https://www.silverpeas.org/legal/floss_exception.html"
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU Affero General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
             xmlns:g="urn:import:com.google.gwt.user.client.ui"
             xmlns:base="urn:import:org.silverpeas.mobile.client.components.base"
             xmlns:components="urn:import:org.silverpeas.mobile.client.components">

  <ui:with field='msg' type='org.silverpeas.mobile.client.apps.news.resources.NewsMessages' />

  <g:HTMLPanel ui:field="container" styleName="content ui-content ui-body-a">
      <g:TextBox ui:field="title" styleName="title"/>
      <g:TextArea ui:field="description" styleName="description"/>
      <g:CheckBox ui:field="important" text="{msg.important}" styleName="important" value="true"/>
      <g:Anchor ui:field="crop" stylePrimaryName="crop" title="{msg.crop}" visible="false"></g:Anchor>
      <g:FlowPanel ui:field="thumbnailContainer" stylePrimaryName="thumbnail">
          <g:FileUpload ui:field="thumbnail" name="thumbnail"/>
      </g:FlowPanel>

      <div ui:field="newsContent"></div>

      <div class="startDate">
          <label><ui:text from="{msg.startDate}" /></label>
          <g:TextBox ui:field="startDate"/>
      </div>
      <div class="endDate">
          <label><ui:text from="{msg.endDate}" /></label>
          <g:TextBox ui:field="endDate"/>
      </div>

      <div class=" ui-controlgroup ui-controlgroup-horizontal">
          <div class="ui-controlgroup-controls ">
              <g:Anchor ui:field="submit" styleName="btn-validate ui-link">
                  <span ui:field="submitTitle" class="ui-btn-text"><ui:text from="{msg.create}"/></span>
              </g:Anchor>
          </div>
      </div>

  </g:HTMLPanel>
</ui:UiBinder> 