[design] improve group edit form

This commit is contained in:
zombieFox 2020-03-16 23:12:58 +00:00
parent a4a5e36dec
commit db67fb93c6

View File

@ -548,11 +548,6 @@ var link = (function() {
var groupFormRandomNameButtonWrap = helper.node("div|class:form-wrap"); var groupFormRandomNameButtonWrap = helper.node("div|class:form-wrap");
var groupFormRandomNameButton = helper.node("button:Random Group name|class:button,type:button,tabindex:1"); var groupFormRandomNameButton = helper.node("button:Random Group name|class:button,type:button,tabindex:1");
// group position
var groupFormPositionInputWrap = helper.node("div|class:form-wrap");
var groupFormPositionLabel = helper.node("label:Position|for:group-form-position");
var groupFormPositionSelect = helper.node("select|id:group-form-position,class:group-form-position,tabindex:1");
// open all // open all
var groupFormOpenAllInputWrap = helper.node("div|class:form-wrap"); var groupFormOpenAllInputWrap = helper.node("div|class:form-wrap");
var groupFormInputOpenallLabel = helper.node("label|for:group-form-input-openall"); var groupFormInputOpenallLabel = helper.node("label|for:group-form-input-openall");
@ -562,6 +557,11 @@ var link = (function() {
var groupFormOpenAllInputHelper = helper.node("div|class:form-helper"); var groupFormOpenAllInputHelper = helper.node("div|class:form-helper");
var groupFormOpenAllInputHelperItem = helper.node("p:Open all button will appear if there is at least one Bookmark in this Group.|class:link-form-input-icon-helper form-helper-item"); var groupFormOpenAllInputHelperItem = helper.node("p:Open all button will appear if there is at least one Bookmark in this Group.|class:link-form-input-icon-helper form-helper-item");
// group position
var groupFormPositionInputWrap = helper.node("div|class:form-wrap");
var groupFormPositionLabel = helper.node("label:Position|for:group-form-position");
var groupFormPositionSelect = helper.node("select|id:group-form-position,class:group-form-position,tabindex:1");
groupFormInputNameShowLabel.appendChild(groupFormInputNameShowIcon); groupFormInputNameShowLabel.appendChild(groupFormInputNameShowIcon);
groupFormInputNameShowLabel.appendChild(groupFormInputNameShowText); groupFormInputNameShowLabel.appendChild(groupFormInputNameShowText);
groupFormInputNameShowWrap.appendChild(groupFormInputNameShowInput); groupFormInputNameShowWrap.appendChild(groupFormInputNameShowInput);
@ -583,10 +583,10 @@ var link = (function() {
fieldset.appendChild(groupFormInputNameShowWrap); fieldset.appendChild(groupFormInputNameShowWrap);
fieldset.appendChild(groupFormInputNameIndentWrap); fieldset.appendChild(groupFormInputNameIndentWrap);
fieldset.appendChild(helper.node("hr")); fieldset.appendChild(helper.node("hr"));
fieldset.appendChild(groupFormPositionInputWrap);
fieldset.appendChild(helper.node("hr"));
fieldset.appendChild(groupFormOpenAllInputWrap); fieldset.appendChild(groupFormOpenAllInputWrap);
fieldset.appendChild(groupFormOpenAllInputHelper); fieldset.appendChild(groupFormOpenAllInputHelper);
fieldset.appendChild(helper.node("hr"));
fieldset.appendChild(groupFormPositionInputWrap);
form.appendChild(fieldset); form.appendChild(fieldset);
var makeGroupOptions = function() { var makeGroupOptions = function() {