removed duplicate sql, moved add button into the menu to allow adding when there is no gallery
This commit is contained in:
parent
dc14afcaf7
commit
8c33a97e0c
@ -1,13 +0,0 @@
|
||||
CREATE TABLE `webcraft_gallery` (
|
||||
`ID` INT(10) NOT NULL AUTO_INCREMENT,
|
||||
`gallery` INT(10) NOT NULL,
|
||||
`position` INT(10) NOT NULL DEFAULT '0',
|
||||
`heading` CHAR(255) NOT NULL,
|
||||
`description` TEXT NOT NULL,
|
||||
`file_cat` CHAR(50) NOT NULL,
|
||||
`file_id` CHAR(50) NOT NULL,
|
||||
PRIMARY KEY (`ID`)
|
||||
)
|
||||
COLLATE='utf8_general_ci'
|
||||
ENGINE=InnoDB
|
||||
AUTO_INCREMENT=41;
|
||||
@ -9,12 +9,4 @@ ${gallery}
|
||||
<th>File</th>
|
||||
</tr>
|
||||
${content}
|
||||
<tr>
|
||||
<th><input type="button" class="btn btn-success galleryadd" value="Add"/></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</table>
|
||||
@ -3,6 +3,7 @@
|
||||
<div class="tabbable">
|
||||
<ul class="nav nav-tabs" id="gallerytab">
|
||||
${tabopts}
|
||||
<input type="button" class="btn btn-success galleryadd" value="Add"/>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="tab_gallery">${firsttab}</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user