templateContext.set("nameMissing", true);
return;
}
+ String description = request.getHttpRequest().getPartAsStringFailsafe("description", 256).trim();
Sone currentSone = getCurrentSone(request.getToadletContext());
String parentId = request.getHttpRequest().getPartAsStringFailsafe("parent", 36);
Album parent = webInterface.getCore().getAlbum(parentId, false);
Album album = webInterface.getCore().createAlbum(currentSone, parent);
- album.setName(name);
+ album.setName(name).setDescription(description);
throw new RedirectException("imageBrowser.html?album=" + album.getId());
}
}
View.CreateAlbum.Title=Create Album
View.CreateAlbum.Label.Name=Name:
+View.CreateAlbum.Label.Description=Description:
WebInterface.DefaultText.StatusUpdate=What’s on your mind?
WebInterface.DefaultText.Message=Write a Message…
<input type="hidden" name="parent" value="<%ifnull ! album><% album.id|html><%/if>" />
<label for="album"><%= View.CreateAlbum.Label.Name|l10n|html></label>
<input type="text" name="name" value="" />
+ <label for="description"><%= View.CreateAlbum.Label.Description|l10n|html></label>
+ <input type="text" name="description" value="" />
<button type="submit" name="uploadImage" value="1"><%= Page.ImageBrowser.CreateAlbum.Button.CreateAlbum|l10n|html></button>
</form>