[Fusionforge-commits] r16029 - trunk/src/common/docman/views

Franck VILLAUME nerville at fusionforge.org
Sat Jul 21 09:53:22 CEST 2012


Author: nerville
Date: 2012-07-21 09:53:21 +0200 (Sat, 21 Jul 2012)
New Revision: 16029

Modified:
   trunk/src/common/docman/views/addfile.php
Log:
start to use html5 when needed

Modified: trunk/src/common/docman/views/addfile.php
===================================================================
--- trunk/src/common/docman/views/addfile.php	2012-07-20 14:54:57 UTC (rev 16028)
+++ trunk/src/common/docman/views/addfile.php	2012-07-21 07:53:21 UTC (rev 16029)
@@ -7,6 +7,7 @@
  * Copyright 2010-2011, Franck Villaume - Capgemini
  * Copyright 2011, Roland Mas
  * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
+ * Copyright 2012, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -111,7 +112,7 @@
 					<td style="text-align:right;">
 						<strong>'. _('Document Title').'</strong>'.utils_requiredField()
 					.'</td><td>'
-					.' <input type="text" name="title" size="40" maxlength="255" /> '
+					.' <input type="text" name="title" size="40" maxlength="255" required="required" /> '
 					.sprintf(_('(at least %1$s characters)'), 5)
 					.'</td>
 				</tr>
@@ -119,7 +120,7 @@
 					<td style="text-align:right;">
 						<strong>'. _('Description') .'</strong>'.utils_requiredField()
 				 	.'</td><td>'
-						.' <input type="text" name="description" size="50" maxlength="255" /> '
+						.' <input type="text" name="description" size="50" maxlength="255" required="required" /> '
 						.sprintf(_('(at least %1$s characters)'), 10)
 					.'</td>
 				</tr>
@@ -127,12 +128,12 @@
 					<td style="text-align:right;">
 						<strong>'. _('Type of Document') .'</strong>'.utils_requiredField()
 					.'</td><td>
-					<input type="radio" name="type" value="httpupload" onclick="javascript:displayRowFile()" checked="checked" />'. _('File') .'<input type="radio" name="type" value="pasteurl" onclick="javascript:displayRowUrl()" />'. _('URL');
+					<input type="radio" name="type" value="httpupload" onclick="javascript:displayRowFile()" checked="checked" required="required" />'. _('File') .'<input type="radio" name="type" value="pasteurl" onclick="javascript:displayRowUrl()" />'. _('URL');
 	if (forge_get_config('use_manual_uploads')) {
-					echo '<input type="radio" name="type" value="manualupload" onclick="javascript:displayRowManual()" />'. _('Already-uploaded file');
+					echo '<input type="radio" name="type" value="manualupload" onclick="javascript:displayRowManual()" required="required" />'. _('Already-uploaded file');
 	}
 	if ($g->useCreateOnline()) {
-					echo '<input type="radio" name="type" value="editor" onclick="javascript:displayRowEditor()" />'. _('Create online');
+					echo '<input type="radio" name="type" value="editor" onclick="javascript:displayRowEditor()" required="required" />'. _('Create online');
 	}
 	echo '				</td>
 				</tr>
@@ -140,14 +141,14 @@
 					<td style="text-align:right;">
 						<strong>'. _('Upload File') .'</strong>'. utils_requiredField()
 					.'</td><td>'
-						.' <input type="file" name="uploaded_data" size="30" />
+						.' <input type="file" name="uploaded_data" size="30" required="required" />
 					</td>
 				</tr>
 				<tr id="urlrow" style="display:none">
 					<td style="text-align:right;">
 						<strong>'. _('URL') .'</strong>'. utils_requiredField()
 					.'</td><td>'
-						.' <input type="text" name="file_url" size="30" />
+						.' <input type="text" name="file_url" size="30" required="required" />
 					</td>
 				</tr>
 				<tr id="pathrow" style="display:none">




More information about the Fusionforge-commits mailing list