[castleparadox] / trunk / templates / cp3 / content / editSongContent.html Repository:
ViewVC logotype

View of /trunk/templates/cp3/content/editSongContent.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (download) (as text) (annotate)
Fri Dec 4 09:17:24 2009 UTC (9 years ago) by inferiorminion
File size: 12147 byte(s)
Bug #30: Implement Project Soft Delete 
https://bugs.castleparadox.com/show_bug.cgi?id=30
<!-- BEGIN project -->
					<div id="projectSong" class="tabgroup">
						<p class="cancelButton"><a href="#" onclick="return showDeleted(this);">Show Deleted</a></p>
						<ul id="projectSongContent" class="tabs">
							<li id="songDetailsTab"><a href="#songDetails" onclick="return selectTab('songDetails')">Song Details</a></li>
							<li id="downloadsTab"><a href="#downloads" onclick="return selectTab('downloads')">Downloadable Content</a></li>
						</ul>
						<div id="songDetails" class="tab">
							<h3 class="tabHeader">
								<a name="songDetails">Song Details</a>
							</h3>
							<div id="songDetailsContent" class="tabContent">
								<div id="songGenre" class="group">
									<h3><span>Genre</span></h3>
									<ul>
	<!-- BEGIN !globalgenre -->
		<!-- IF globalgenre.PROJECT_TYPE == 3 -->
			<!-- UNDEFINE $CHECKED -->
			<!-- BEGIN !project -->
				<!-- BEGIN genre -->
					<!-- IF project.genre.GENRE_ID == globalgenre.GENRE_ID -->
						<!-- DEFINE $CHECKED = true -->
					<!-- ENDIF -->
				<!-- END genre -->
			<!-- END project -->
										<li>							
			<!-- IF $CHECKED -->
											<input type="checkbox" name="genre{globalgenre.GENRE_ID}" value="{globalgenre.GENRE_ID}" checked/>
			<!-- ELSE -->
											<input type="checkbox" name="genre{globalgenre.GENRE_ID}" value="{globalgenre.GENRE_ID}"/>
			<!-- ENDIF -->
											<label for="genre{globalgenre.GENRE_ID}">{globalgenre.DESCRIPTION}</label>
										</li>
		<!-- ENDIF -->
	<!-- END globalgenre -->
									</ul>
									<div class="footer">
										<p class="footer"/>
									</div>
								</div>
							</div>
						</div>
						<div id="downloads" class="tab">
							<h3 class="tabHeader">
								<a name="downloads">Downloadable Content</a>
							</h3>
							<div id="downloadsContent" class="tabContent">
								<div class="group" id="archives">
									<div id="songFile" class="tabgroup">
										<h3><span>Song Files</span></h3>
										<ul id="songFileContent" class="tabs">
											<li id="bamTab"><a href="#bam" onclick="return selectTab('bam')">BAM</a></li>
											<li id="midiTab"><a href="#midi" onclick="return selectTab('midi')">MIDI</a></li>
											<li id="mp3Tab"><a href="#mp3" onclick="return selectTab('mp3')">MP3</a></li>
											<li id="oggTab"><a href="#ogg" onclick="return selectTab('ogg')">OGG</a></li>
											<li id="wavTab"><a href="#wav" onclick="return selectTab('wav')">WAV</a></li>
										</ul>
										<div id="bam" class="tab">
											<h3 class="tabHeader">
												<span><a name="bam">BAM</a></span>
											</h3>
											<div id="bamContent" class="tabContent sticky">
												<h3 class="straight"><span>BAM File</span></h3>
	<!-- UNDEFINE $CHECKED -->
	<!-- BEGIN archive -->
		<!-- IF project.archive.EXTENSION == '.bam' -->
			<!-- IF project.archive.IS_DELETED -->
				<!-- DEFINE $RESOURCECLASS = 'deleted' -->
			<!-- ELSE -->
				<!-- DEFINE $RESOURCECLASS = '' -->
			<!-- ENDIF -->
			<!-- DEFINE $CHECKED = true -->
												<div class="group {$RESOURCECLASS}" id="r{project.archive.RESOURCEID}">
			<!-- IF project.archive.IS_DELETED -->
													<p class="cancelButton"><a href="#" onclick="return undoDeleteResource({project.archive.RESOURCEID}, this);">Undo Delete</a></p>
			<!-- ELSE -->
													<p class="cancelButton"><a href="#" onclick="return deleteResource({project.archive.RESOURCEID}, this);">Delete</a></p>
			<!-- ENDIF -->
													<p id="r{project.archive.RESOURCEID}-name"><a id="r{project.archive.RESOURCEID}-nameAnchor" href="#" onclick="addArchive('{project.archive.EDIT_URL}&amp;datatype[]=application/octet-stream&amp;extension[]=.bam');" title="{project.archive.NAME} - {project.archive.CAPTION}">{project.archive.NAME} - {project.archive.CAPTION}</a></p>
													<p id="r{project.archive.RESOURCEID}-size">Size: {project.archive.SIZE}</p>
													<p id="r{project.archive.RESOURCEID}-dateModified">Date Modified: {project.archive.DATE}</p>
													<p id="r{project.archive.RESOURCEID}-dataType">Data Type: {project.archive.DATATYPE}</p>
												</div>
		<!-- ENDIF -->
	<!-- END archive -->
	<!-- IF $CHECKED != true -->
												<p></p>
												<p><a href="#" onclick="addArchive('{U_ADD_ARCHIVE}&amp;container=bamContent&amp;datatype[]=application/octet-stream&amp;extension[]=.bam');">Add File</a></p>
	<!-- ENDIF -->
											</div>
										</div>
										<div id="midi" class="tab">
											<h3 class="tabHeader">
												<span><a name="midi">MIDI</a></span>
											</h3>
											<div id="midiContent" class="tabContent sticky">
												<h3 class="straight"><span>MIDI File</span></h3>
	<!-- UNDEFINE $CHECKED -->
	<!-- BEGIN archive -->
		<!-- IF project.archive.EXTENSION == '.mid' -->
			<!-- IF project.archive.IS_DELETED -->
				<!-- DEFINE $RESOURCECLASS = 'deleted' -->
			<!-- ELSE -->
				<!-- DEFINE $RESOURCECLASS = '' -->
			<!-- ENDIF -->
			<!-- DEFINE $CHECKED = true -->
												<div class="group {$RESOURCECLASS}" id="r{project.archive.RESOURCEID}">
			<!-- IF project.archive.IS_DELETED -->
													<p class="cancelButton"><a href="#" onclick="return undoDeleteResource({project.archive.RESOURCEID}, this);">Undo Delete</a></p>
			<!-- ELSE -->
													<p class="cancelButton"><a href="#" onclick="return deleteResource({project.archive.RESOURCEID}, this);">Delete</a></p>
			<!-- ENDIF -->
													<p id="r{project.archive.RESOURCEID}-name"><a id="r{project.archive.RESOURCEID}-nameAnchor" href="#" onclick="addArchive('{project.archive.EDIT_URL}&amp;datatype[]=audio/mid&amp;datatype[]=audio/midi&amp;extension[]=.mid');" title="{project.archive.NAME} - {project.archive.CAPTION}">{project.archive.NAME} - {project.archive.CAPTION}</a></p>
													<p id="r{project.archive.RESOURCEID}-size">Size: {project.archive.SIZE}</p>
													<p id="r{project.archive.RESOURCEID}-dateModified">Date Modified: {project.archive.DATE}</p>
												</div>
		<!-- ENDIF -->
	<!-- END archive -->
	<!-- IF $CHECKED != true -->
												<p></p>
												<p><a href="#" onclick="addArchive('{U_ADD_ARCHIVE}&amp;container=midiContent&amp;datatype[]=audio/mid&amp;datatype[]=audio/midi&amp;extension[]=.mid');">Add File</a></p>
	<!-- ENDIF -->
											</div>
										</div>
										<div id="mp3" class="tab">
											<h3 class="tabHeader">
												<span><a name="mp3">MP3</a></span>
											</h3>
											<div id="mp3Content" class="tabContent sticky">
												<h3 class="straight"><span>MP3 File</span></h3>
	<!-- UNDEFINE $CHECKED -->
	<!-- BEGIN archive -->
		<!-- IF project.archive.EXTENSION == '.mp3' -->
			<!-- IF project.archive.IS_DELETED -->
				<!-- DEFINE $RESOURCECLASS = 'deleted' -->
			<!-- ELSE -->
				<!-- DEFINE $RESOURCECLASS = '' -->
			<!-- ENDIF -->
			<!-- DEFINE $CHECKED = true -->
												<div class="group {$RESOURCECLASS}" id="r{project.archive.RESOURCEID}">
			<!-- IF project.archive.IS_DELETED -->
													<p class="cancelButton"><a href="#" onclick="return undoDeleteResource({project.archive.RESOURCEID}, this);">Undo Delete</a></p>
			<!-- ELSE -->
													<p class="cancelButton"><a href="#" onclick="return deleteResource({project.archive.RESOURCEID}, this);">Delete</a></p>
			<!-- ENDIF -->
													<p id="r{project.archive.RESOURCEID}-name"><a id="r{project.archive.RESOURCEID}-nameAnchor" href="#" onclick="addArchive('{project.archive.EDIT_URL}&amp;datatype[]=audio/mpeg&amp;extension[]=.mp3');" title="{project.archive.NAME} - {project.archive.CAPTION}">{project.archive.NAME} - {project.archive.CAPTION}</a></p>
													<p id="r{project.archive.RESOURCEID}-size">Size: {project.archive.SIZE}</p>
													<p id="r{project.archive.RESOURCEID}-dateModified">Date Modified: {project.archive.DATE}</p>
												</div>
		<!-- ENDIF -->
	<!-- END archive -->
	<!-- IF $CHECKED != true -->
												<p></p>
												<p><a href="#" onclick="addArchive('{U_ADD_ARCHIVE}&amp;container=mp3Content&amp;datatype[]=audio/mpeg&amp;extension[]=.mp3');">Add File</a></p>
	<!-- ENDIF -->
											</div>
										</div>
										<div id="ogg" class="tab">
											<h3 class="tabHeader">
												<span><a name="ogg">OGG</a></span>
											</h3>
											<div id="oggContent" class="tabContent sticky">
												<h3 class="straight"><span>OGG File</span></h3>
	<!-- UNDEFINE $CHECKED -->
	<!-- BEGIN archive -->
		<!-- IF project.archive.EXTENSION == '.ogg' -->
			<!-- IF project.archive.IS_DELETED -->
				<!-- DEFINE $RESOURCECLASS = 'deleted' -->
			<!-- ELSE -->
				<!-- DEFINE $RESOURCECLASS = '' -->
			<!-- ENDIF -->
			<!-- DEFINE $CHECKED = true -->
												<div class="group {$RESOURCECLASS}" id="r{project.archive.RESOURCEID}">
			<!-- IF project.archive.IS_DELETED -->
													<p class="cancelButton"><a href="#" onclick="return undoDeleteResource({project.archive.RESOURCEID}, this);">Undo Delete</a></p>
			<!-- ELSE -->
													<p class="cancelButton"><a href="#" onclick="return deleteResource({project.archive.RESOURCEID}, this);">Delete</a></p>
			<!-- ENDIF -->
													<p id="r{project.archive.RESOURCEID}-name"><a id="r{project.archive.RESOURCEID}-nameAnchor" href="#" onclick="addArchive('{project.archive.EDIT_URL}&amp;datatype[]=application/x-ogg&amp;datatype[]=video/ogg&amp;datatype[]=application/octet-stream&amp;extension[]=.ogg');" title="{project.archive.NAME} - {project.archive.CAPTION}">{project.archive.NAME} - {project.archive.CAPTION}</a></p>
													<p id="r{project.archive.RESOURCEID}-size">Size: {project.archive.SIZE}</p>
													<p id="r{project.archive.RESOURCEID}-dateModified">Date Modified: {project.archive.DATE}</p>
												</div>
		<!-- ENDIF -->
	<!-- END archive -->
	<!-- IF $CHECKED != true -->
												<p></p>
												<p><a href="#" onclick="addArchive('{U_ADD_ARCHIVE}&amp;container=oggContent&amp;datatype[]=application/x-ogg&amp;datatype[]=video/ogg&amp;datatype[]=application/octet-stream&amp;extension[]=.ogg');">Add File</a></p>
	<!-- ENDIF -->
											</div>
										</div>
										<div id="wav" class="tab">
											<h3 class="tabHeader">
												<span><a name="wav">WAV</a></span>
											</h3>
											<div id="wavContent" class="tabContent sticky">
												<h3 class="straight"><span>WAV File</span></h3>
	<!-- UNDEFINE $CHECKED -->
	<!-- BEGIN archive -->
		<!-- IF project.archive.EXTENSION == '.wav' -->
			<!-- IF project.archive.IS_DELETED -->
				<!-- DEFINE $RESOURCECLASS = 'deleted' -->
			<!-- ELSE -->
				<!-- DEFINE $RESOURCECLASS = '' -->
			<!-- ENDIF -->
			<!-- DEFINE $CHECKED = true -->
												<div class="group {$RESOURCECLASS}" id="r{project.archive.RESOURCEID}">
			<!-- IF project.archive.IS_DELETED -->
													<p class="cancelButton"><a href="#" onclick="return undoDeleteResource({project.archive.RESOURCEID}, this);">Undo Delete</a></p>
			<!-- ELSE -->
													<p class="cancelButton"><a href="#" onclick="return deleteResource({project.archive.RESOURCEID}, this);">Delete</a></p>
			<!-- ENDIF -->
													<p id="r{project.archive.RESOURCEID}-name"><a id="r{project.archive.RESOURCEID}-nameAnchor" href="#" onclick="addArchive('{project.archive.EDIT_URL}&amp;datatype[]=audio/x-wav&amp;extension[]=.wav');" title="{project.archive.NAME} - {project.archive.CAPTION}">{project.archive.NAME} - {project.archive.CAPTION}</a></p>
													<p id="r{project.archive.RESOURCEID}-size">Size: {project.archive.SIZE}</p>
													<p id="r{project.archive.RESOURCEID}-dateModified">Date Modified: {project.archive.DATE}</p>
												</div>
		<!-- ENDIF -->
	<!-- END archive -->
	<!-- IF $CHECKED != true -->
												<p></p>
												<p><a href="#" onclick="addArchive('{U_ADD_ARCHIVE}&amp;container=wavContent&amp;datatype[]=audio/x-wav&amp;extension[]=.wav');">Add File</a></p>
	<!-- ENDIF -->
											</div>
										</div>
										<div class="footer clear">
											<p class="footer"/>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
<!-- END project -->

Inferior Minion
ViewVC Help
Powered by ViewVC 1.0.4