diff --git a/src/IDF/Form/UpdateUpload.php b/src/IDF/Form/UpdateUpload.php index a5a47ad..651eb52 100644 --- a/src/IDF/Form/UpdateUpload.php +++ b/src/IDF/Form/UpdateUpload.php @@ -47,7 +47,7 @@ class IDF_Form_UpdateUpload extends Pluf_Form ), )); $tags = $this->upload->get_tags_list(); - for ($i=1;$i<4;$i++) { + for ($i=1;$i<7;$i++) { $initial = ''; if (isset($tags[$i-1])) { if ($tags[$i-1]->class != 'Other') { @@ -82,7 +82,7 @@ class IDF_Form_UpdateUpload extends Pluf_Form } } $count = array(); - for ($i=1;$i<4;$i++) { + for ($i=1;$i<7;$i++) { $this->cleaned_data['label'.$i] = trim($this->cleaned_data['label'.$i]); if (strpos($this->cleaned_data['label'.$i], ':') !== false) { list($class, $name) = explode(':', $this->cleaned_data['label'.$i], 2); @@ -117,7 +117,7 @@ class IDF_Form_UpdateUpload extends Pluf_Form } // Add a tag for each label $tags = array(); - for ($i=1;$i<4;$i++) { + for ($i=1;$i<7;$i++) { if (strlen($this->cleaned_data['label'.$i]) > 0) { if (strpos($this->cleaned_data['label'.$i], ':') !== false) { list($class, $name) = explode(':', $this->cleaned_data['label'.$i], 2); diff --git a/src/IDF/Form/Upload.php b/src/IDF/Form/Upload.php index c547ae2..e13e468 100644 --- a/src/IDF/Form/Upload.php +++ b/src/IDF/Form/Upload.php @@ -52,7 +52,7 @@ class IDF_Form_Upload extends Pluf_Form 'upload_path_create' => true), )); - for ($i=1;$i<4;$i++) { + for ($i=1;$i<7;$i++) { $this->fields['label'.$i] = new Pluf_Form_Field_Varchar( array('required' => false, 'label' => __('Labels'), @@ -87,7 +87,7 @@ class IDF_Form_Upload extends Pluf_Form } } $count = array(); - for ($i=1;$i<4;$i++) { + for ($i=1;$i<7;$i++) { $this->cleaned_data['label'.$i] = trim($this->cleaned_data['label'.$i]); if (strpos($this->cleaned_data['label'.$i], ':') !== false) { list($class, $name) = explode(':', $this->cleaned_data['label'.$i], 2); @@ -122,7 +122,7 @@ class IDF_Form_Upload extends Pluf_Form } // Add a tag for each label $tags = array(); - for ($i=1;$i<4;$i++) { + for ($i=1;$i<7;$i++) { if (strlen($this->cleaned_data['label'.$i]) > 0) { if (strpos($this->cleaned_data['label'.$i], ':') !== false) { list($class, $name) = explode(':', $this->cleaned_data['label'.$i], 2); diff --git a/src/IDF/templates/downloads/js-autocomplete.html b/src/IDF/templates/downloads/js-autocomplete.html index 0d00d55..6949c8f 100644 --- a/src/IDF/templates/downloads/js-autocomplete.html +++ b/src/IDF/templates/downloads/js-autocomplete.html @@ -6,7 +6,7 @@ $(document).ready(function(){ var auto_labels = [{/literal}{$auto_labels|safe}{literal}]; var j=0; - for (j=1;j<4;j=j+1) { + for (j=1;j<7;j=j+1) { $("#id_label"+j).autocomplete(auto_labels, { minChars: 0, width: 310, diff --git a/src/IDF/templates/downloads/submit.html b/src/IDF/templates/downloads/submit.html index 663b39a..875029d 100644 --- a/src/IDF/templates/downloads/submit.html +++ b/src/IDF/templates/downloads/submit.html @@ -29,7 +29,10 @@