removed duplicate sql, moved add button into the menu to allow adding when there is no gallery

This commit is contained in:
Ulf Gebhardt 2015-10-06 19:30:53 +02:00
parent dc14afcaf7
commit 8c33a97e0c
3 changed files with 1 additions and 21 deletions

View File

@ -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;

View File

@ -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>

View File

@ -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>