Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: glendel/GUI-for-RoR
base: 13110ae336
...
head fork: glendel/GUI-for-RoR
compare: d5a9231d57
Checking mergeability… Don't worry, you can still create the pull request.
  • 6 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
View
6 app/views/layouts/application.html.erb
@@ -31,10 +31,8 @@
<%= render( { :partial => 'layouts/ui-layout-west/left_bar' } ) %>
</div>
<%- end -%>
- <div id="global-content" class="ui-layout-center" style="display:none;">
- <%= render( { :partial => 'layouts/ui-layout-center/header' } ) %>
- <%= render( { :partial => 'layouts/ui-layout-center/content' } ) %>
- <%= render( { :partial => 'layouts/ui-layout-center/footer' } ) %>
+ <div class="ui-layout-center" style="display:none;">
+ <%= render( { :partial => 'layouts/ui-layout-center/workspace' } ) %>
</div>
<%- if ( user_signed_in? ) -%>
<div class="ui-layout-east" style="display:none;">
View
2  app/views/layouts/ui-layout-center/_footer.html.erb
@@ -1,3 +1,3 @@
<footer id="footer" class="footer">
- This is the footer for the contents
+ Copyright © <%= Time.now.year %> Worldwide Systems Services SAS
</footer>
View
3  app/views/layouts/ui-layout-center/_workspace.html.erb
@@ -0,0 +1,3 @@
+<%= render( { :partial => 'layouts/ui-layout-center/header' } ) %>
+<%= render( { :partial => 'layouts/ui-layout-center/content' } ) %>
+<%= render( { :partial => 'layouts/ui-layout-center/footer' } ) %>
View
8 app/views/layouts/ui-layout-north/_menu_bar.html.erb
@@ -23,7 +23,7 @@
<%- end -%>
</span>
</nav>
-<div id="menu_items"></div>
+<div id="menu_items" class="menu_items"></div>
<%-
content_for( :document_ready_ui ) do
if ( menus.blank? )
@@ -47,7 +47,7 @@
id : <%= menu.id %>,
url : '<%= menu_items_path( { :menu_id => menu.id } ) if ( has_menu_items ) %>',
hasMenuItems : <%= has_menu_items %>
- }, menuMouseDownHandler );
+ }, menuButtonMouseDownHandler );
<%-
end
end
@@ -59,14 +59,14 @@
} ).bind( 'mousedown', {
url : '<%= edit_user_path( current_user ) %>',
hasMenuItems : false
- }, menuMouseDownHandler );
+ }, buttonMouseDownHandler );
$( '#menuSignOut' ).button( {
label : 'Sign Out'
} ).bind( 'mousedown', {
url : '<%= destroy_user_session_path %>',
hasMenuItems : false,
actAsLink : true
- }, menuMouseDownHandler );
+ }, buttonMouseDownHandler );
<%-
end
end
View
26 public/javascripts/application.js
@@ -1,2 +1,28 @@
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
+
+// Function to handle the mousedown event on the buttons.
+function buttonMouseDownHandler( eventObject ) {
+ if ( eventObject.data.actAsLink ) {
+ window.location.href = eventObject.data.url;
+ } else if ( eventObject.data.isADialog ) {
+
+ } else {
+
+ }
+}
+
+// Function to handle the mousedown event on the menu buttons.
+function menuButtonMouseDownHandler( eventObject ) {
+ if ( eventObject.data.hasMenuItems ) {
+ var menuItems = jQuery( '#menu_items_for_menu' + eventObject.data.id );
+
+ if ( menuItems.length > 0 ) {
+
+ } else {
+
+ }
+ } else {
+ buttonMouseDownHandler( eventObject );
+ }
+}
View
42 public/stylesheets/application.css
@@ -116,7 +116,7 @@ input[type=text], input[type=password] {
/************* End of the CSS for the Flash messages *************/
/********** End of the CSS to modify the jQuery UI CSS **********/
-/**** Start of the CSS for to handle the Error Explanations on Rails ****/
+/**** Start of the CSS for the Error Explanations on Rails ****/
#errorExplanation {
border: 2px solid red;
padding: 7px;
@@ -152,7 +152,7 @@ input[type=text], input[type=password] {
background-color: red;
display: table;
}
-/***** End of the CSS for to handle the Error Explanations on Rails *****/
+/***** End of the CSS for the Error Explanations on Rails *****/
/**** Start of the CSS for the Menu Bar ****/
#menu_bar {
@@ -171,13 +171,17 @@ input[type=text], input[type=password] {
margin-top: 1px;
height: 100%;
}
-/***** End of the CSS for the Menu Bar *****/
-/**** Start of the CSS for the Right Bar ****/
-#right_bar {
+/**** Start of the CSS for the Menu Items ****/
+#menu_items {
}
-/***** End of the CSS for the Right Bar *****/
+
+#menu_items > ul {
+
+}
+/***** End of the CSS for the Menu Items *****/
+/***** End of the CSS for the Menu Bar *****/
/**** Start of the CSS for the Left Bar ****/
#left_bar {
@@ -185,6 +189,32 @@ input[type=text], input[type=password] {
}
/***** End of the CSS for the Left Bar *****/
+/**** Start of the CSS for the workspace ****/
+/**** Start of the CSS for the workspace header ****/
+#header {
+ text-align: center;
+}
+/***** End of the CSS for the workspace header *****/
+
+/**** Start of the CSS for the workspace content ****/
+#content {
+
+}
+/***** End of the CSS for the workspace content *****/
+
+/**** Start of the CSS for the workspace footer ****/
+#footer {
+ text-align: center;
+}
+/***** End of the CSS for the workspace footer *****/
+/***** End of the CSS for the workspace *****/
+
+/**** Start of the CSS for the Right Bar ****/
+#right_bar {
+
+}
+/***** End of the CSS for the Right Bar *****/
+
/**** Start of the CSS for the Task Bar ****/
#task_bar {

No commit comments for this range

Something went wrong with that request. Please try again.