Trevor Parscal has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67466


Change subject: Reference names
......................................................................

Reference names

First crack at editing reference names

Change-Id: Ic4121e4fcfc09265d5863af6f078cdeb77926c8e
TODO: Make this actually load and save reference names.
---
M modules/ve/ui/dialogs/ve.ui.MWReferenceDialog.js
1 file changed, 15 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/66/67466/1

diff --git a/modules/ve/ui/dialogs/ve.ui.MWReferenceDialog.js 
b/modules/ve/ui/dialogs/ve.ui.MWReferenceDialog.js
index 8705826..1006f1e 100644
--- a/modules/ve/ui/dialogs/ve.ui.MWReferenceDialog.js
+++ b/modules/ve/ui/dialogs/ve.ui.MWReferenceDialog.js
@@ -72,6 +72,18 @@
        }
 
        // Properties
+       this.contentFieldset = new ve.ui.FieldsetLayout( {
+               '$$': this.frame.$$, 'label': 'Content', 'icon': 'parameter'
+       } );
+       this.nameFieldset = new ve.ui.FieldsetLayout( {
+               '$$': this.frame.$$, 'label': 'Name', 'icon': 'parameter'
+       } );
+       this.nameInput = new ve.ui.TextInputWidget( { '$$': this.frame.$$ } );
+       this.nameLabel = new ve.ui.InputLabelWidget( {
+               '$$': this.frame.$$,
+               'input': this.nameInput,
+               'label': 'Reuse this reference by this name'
+       } );
        this.referenceSurface = new ve.ui.Surface(
                new ve.dm.ElementLinearData( data ), { '$$': this.frame.$$ }
        );
@@ -79,7 +91,9 @@
 
        // Initialization
        this.referenceToolbar.$.addClass( 've-ui-mwReferenceDialog-toolbar' );
-       this.$body.append( this.referenceToolbar.$, this.referenceSurface.$ );
+       this.$body.append( this.contentFieldset.$, this.nameFieldset.$ );
+       this.contentFieldset.$.append( this.referenceToolbar.$, 
this.referenceSurface.$ );
+       this.nameFieldset.$.append( this.nameLabel.$, this.nameInput.$ );
        this.referenceToolbar.addTools( 
ve.init.mw.ViewPageTarget.static.toolbarTools );
        this.referenceSurface.addCommands( 
ve.init.mw.ViewPageTarget.static.surfaceCommands );
        this.referenceSurface.initialize();

-- 
To view, visit https://gerrit.wikimedia.org/r/67466
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4121e4fcfc09265d5863af6f078cdeb77926c8e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Trevor Parscal <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to