Skip to content

Commit

Permalink
Improved layout and i18n of sitemap attribute dialog some more.
Browse files Browse the repository at this point in the history
  • Loading branch information
gWestenberger committed Apr 4, 2023
1 parent 76eaa68 commit 9378c37
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ GUI_TOOLBAR_UNDO_0=R
GUI_URLNAME_ALREADY_EXISTS_0=Diese URL existiert bereits auf dieser Ebene der Sitemap.
GUI_USE_FOR_SUBPAGES_0=Auf Unterseiten benutzen
GUI_VFS_PATH_0=@@import\:org.opencms.ade.sitemap.Messages\#GUI_VFS_PATH_0
GUI_EDIT_ATTRIBUTES_0=Sitemap-Attribute bearbeiten
GUI_EDIT_ATTRIBUTES_0=Sitemap-Attribute
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ GUI_EXPLORER_CONTEXT_CATEGORIES_0 =Kategorien zuordnen
GUI_EXPLORER_CONTEXT_ADVANCED_0 =Erweitert
GUI_EXPLORER_CONTEXT_REINDEX_0 =Neu indizieren
GUI_EXPLORER_CONTEXT_RELATIONS_0 =Verknüpfungen
GUI_EXPLORER_CONTEXT_ALIAS_DIALOG_0 =Aliase bearbeiten
GUI_EXPLORER_CONTEXT_ALIAS_DIALOG_0 =Aliase
GUI_EXPLORER_CONTEXT_REFRESH_0 =Aktualisieren
GUI_EXPLORER_CONTEXT_GO_TO_PARENT_0 =Zeige übergeordnete Sitemap
GUI_EXPLORER_CONTEXT_SHOW_WORKPLACE_0 =Zeige Workplace
Expand Down Expand Up @@ -260,7 +260,7 @@ GUI_PUBLISH_TOOLTIP_0 =Ressource wartet ver
GUI_EXPLORER_CONTEXT_PUBLISH_SCHEDULED_0 = Später veröffentlichen

GUI_EXPLORER_CONTEXT_MULTIFILE_PROPERTY_0 =Metadaten bearbeiten
GUI_EXPLORER_CONTEXT_EDIT_SITEMAP_ATTRIBUTES_0=Sitemap-Attribute bearbeiten
GUI_EXPLORER_CONTEXT_EDIT_SITEMAP_ATTRIBUTES_0=Sitemap-Attribute

GUI_NO_EDIT_REASON_LOCK_1 =Die Datei ist derzeit von "{0}" gesperrt
GUI_NO_EDIT_REASON_HISTORY_0 =Sie betrachten eine historische Version der Datei
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,29 @@ Collections.<String, String> emptyMap(),
@JsMethod(namespace = "navigator")
private static native void sendBeacon(String target, String data);

/**
* @see com.google.gwt.user.client.ui.PopupPanel#setPopupPosition(int, int)
*/
@Override
public void setPopupPosition(int left, int top) {

// handled by CSS
}

/**
* @see org.opencms.gwt.client.ui.input.form.CmsFormDialog#show()
*/
@Override
public void show() {

super.show();
// positioning handled by CSS
getElement().getStyle().clearPosition();
getElement().getStyle().clearLeft();
getElement().getStyle().clearTop();

}

/**
* @see org.opencms.gwt.client.ui.input.form.CmsFormDialog#onClickCancel()
*/
Expand Down
33 changes: 33 additions & 0 deletions src-gwt/org/opencms/gwt/client/ui/css/attributeEditor.gss
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
.dialog-popup.attributeEditor > .dialog-popupContent .input-formWidgetContainer {
}

.dialog-popup.attributeEditor {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.dialog-popup.attributeEditor .dialog-popupHead , .dialog-popup.attributeEditor .dialog-caption {
cursor: default;
}

.dialog-popup.attributeEditor > .dialog-popupContent {
min-width: 720px;
width: 80vw;
max-width: 900px;
}

.dialog-popup.attributeEditor .dialog-contentPadding {
overflow: auto;
max-height: 80vh;
}

.dialog-popup.attributeEditor > .dialog-popupContent .input-formLabel {
}

.dialog-popup.attributeEditor > .dialog-popupContent .input-formWidgetContainer {

}

.dialog-popup.attributeEditor > .dialog-popupContent .input-formWidgetContainer > .input-checkBox .input-checkBoxImage {
/* margin-top: -5px;*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public boolean saveAttributesFromEditorDialog(Map<String, String> attributes) {
public boolean updateAttributes(Map<String, String> attributeUpdates) {

Map<String, String> oldValues = getAttributesFromContent();
Map<String, String> newValues = new HashMap<>(oldValues);
Map<String, String> newValues = new LinkedHashMap<>(oldValues);
for (Map.Entry<String, String> entry : attributeUpdates.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
Expand Down
2 changes: 1 addition & 1 deletion src/org/opencms/ade/sitemap/clientmessages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ GUI_COPYPAGE_MENU_ENTRY_0=Copy page
GUI_LOCALECOMPARE_MODE_0=Compare locales
GUI_EDIT_ATTRIBUTES_0=Edit sitemap attributes
GUI_EDIT_ATTRIBUTES_0=Sitemap attributes
7 changes: 4 additions & 3 deletions src/org/opencms/ui/apps/CmsDefaultMenuItemProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ public class CmsDefaultMenuItemProvider implements I_CmsContextMenuItemProvider
new CmsContextMenuActionItem(new CmsUnlinkLocaleVariantAction(), advanced.getId(), 1150, 0),
new CmsContextMenuActionItem(new CmsSeoAction(), advanced.getId(), 1200, 0),
new CmsContextMenuActionItem(new CmsWorkplaceAction(), advanced.getId(), 1300, 0),
new CmsContextMenuActionItem(new CmsSitemapAliasAction(), advanced.getId(), 1500, 0),
new CmsContextMenuActionItem(new CmsSitemapAttributeEditorAction(), advanced.getId(), 1520, 0),
new CmsContextMenuActionItem(new CmsSitemapEditConfigAction(), advanced.getId(), 1600, 0),

new CmsContextMenuActionItem(new CmsSitemapAttributeEditorAction(), advanced.getId(), 1500, 0),
new CmsContextMenuActionItem(new CmsSitemapEditConfigAction(), advanced.getId(), 1520, 0),
new CmsContextMenuActionItem(new CmsSitemapAliasAction(), advanced.getId(), 1600, 0),
new CmsContextMenuActionItem(new CmsTemplateMapperAction(), advanced.getId(), 1700, 0),

new CmsContextMenuActionItem(new CmsHistoryDialogAction(), null, 2450, 0),
Expand Down
4 changes: 2 additions & 2 deletions src/org/opencms/workplace/explorer/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ GUI_EXPLORER_CONTEXT_CATEGORIES_0 =Assign categories
GUI_EXPLORER_CONTEXT_ADVANCED_0 =Advanced
GUI_EXPLORER_CONTEXT_REINDEX_0 =Reindex
GUI_EXPLORER_CONTEXT_RELATIONS_0 =Relations
GUI_EXPLORER_CONTEXT_ALIAS_DIALOG_0 =Edit aliases
GUI_EXPLORER_CONTEXT_ALIAS_DIALOG_0 =Aliases
GUI_EXPLORER_CONTEXT_REFRESH_0 =Refresh
GUI_EXPLORER_CONTEXT_GO_TO_PARENT_0 =Show parent sitemap
GUI_EXPLORER_CONTEXT_RENAME_0 =Rename
Expand Down Expand Up @@ -285,7 +285,7 @@ GUI_PUBLISH_TOOLTIP_0 =Resource is waiting to be published
GUI_EXPLORER_CONTEXT_PUBLISH_SCHEDULED_0 = Publish scheduled

GUI_EXPLORER_CONTEXT_MULTIFILE_PROPERTY_0 =Edit metadata
GUI_EXPLORER_CONTEXT_EDIT_SITEMAP_ATTRIBUTES_0=Edit sitemap attributes
GUI_EXPLORER_CONTEXT_EDIT_SITEMAP_ATTRIBUTES_0=Sitemap attributes

GUI_NO_EDIT_REASON_LOCK_1 =This resource is currently locked by "{0}"
GUI_NO_EDIT_REASON_HISTORY_0 =You are currently viewing an historical version of this resource
Expand Down

0 comments on commit 9378c37

Please sign in to comment.