Skip to content
Extraits de code Groupes Projets
Valider 4bd0cbfd rédigé par maxwell's avatar maxwell
Parcourir les fichiers

publisher now can handle services, and is on seperate page

parent f2ca2c23
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -72,7 +72,7 @@ class StatusMessagesController < ApplicationController
respond_to do |format|
format.js { render :create, :status => 201}
format.html { redirect_to :back}
format.mobile{ redirect_to :back}
format.mobile{ redirect_to root_url}
end
else
if !photos.empty?
......
......@@ -8,11 +8,12 @@
- else
= @aspect
.grey_back
= render 'shared/publisher', :aspect_ids => @aspect_ids
%h1
= link_to 'post a message >> ', '#publisher_page', :id => 'publisher_button'
#main_stream.stream
= render 'shared/stream', :posts => @fakes
%a.more-link.paginate{:href => '#'}
%h2= t("more")
= will_paginate @posts
- content_for :subpages do
= render 'shared/publisher', :aspect_ids => @aspect_ids
......@@ -9,3 +9,5 @@
#pagination
= will_paginate @posts
- content_for :subpages do
= render 'shared/publisher', :aspect_ids => @aspect_ids
......@@ -89,3 +89,6 @@
= render :partial =>'shared/footer'
= yield :subpages
......@@ -9,22 +9,45 @@
});
});
#publisher
= form_for StatusMessage.new do |status|
#publisher_text
= t('.whats_on_your_mind')
#publisher_page{:data => {:role => 'page', :theme => 'c'}}
#header
- if current_user
.left
= link_to(image_tag('icons/list_white.png'), '/aspects/#menu', :id => "menu_button")
= status.text_area :text
.right
= link_to(image_tag('icons/search_white.png'), people_path)
= link_to(image_tag('white.png'), aspects_path)
%div{:data => {:role => 'content'}}
= form_for StatusMessage.new, {:data => {:ajax => false}} do |status|
#publisher_text
= t('.whats_on_your_mind')
- for aspect_id in @aspect_ids
= hidden_field_tag 'aspect_ids[]', aspect_id.to_s
= status.text_area :text
- for aspect_id in @aspect_ids
= hidden_field_tag 'aspect_ids[]', aspect_id.to_s
%fieldset.hidden{:style => 'text-align:right;'}
%fieldset{:data => {:role => 'controlgroup', :type=>'horizontal'}}
%fieldset
- unless params[:a_ids]
%input{:type => 'checkbox', :name => 'status_message[public]', :id => 'public', :class => 'custom', :value => 'true'}
%label{:for => 'public'}
= t('.make_public')
= status.submit t('.share'), 'data-inline' => 'true', 'data-theme' => 'b'
- unless current_user.services.empty?
%div{:data => {:role => 'fieldcontain'}}
%label{:for => 'services', :class => 'select'}
choose services
- current_user.services.each do |service|
%input{:type => 'checkbox', :name => "services[]", :id => "#{service.provider}", :class => 'custom', :value => "#{service.provider}"}
%label{:for => "#{service.provider}"}
= "#{service.provider}"
-#%select{:name => 'services', :multiple => 'multiple', :id => "services"}
-#%option
-#Choose a Service
-#- current_user.services.each do |service|
-#%option{:value => "#{service.provider}"}
-#= service.provider.titleize
= status.submit t('.share'), 'data-theme' => 'c'
......@@ -7,5 +7,7 @@ $(document).bind("mobileinit", function() {
$.extend($.mobile, {
ajaxLinksEnabled: false,
ajaxFormsEnabled: false
});
$.mobile.selectmenu.prototype.options.nativeMenu = false;
});
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter