Created
September 30, 2013 16:59
-
-
Save gerep/6766769 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title><%= content_for?(:title) ? yield(:title) : "2Pay" %></title> | |
<meta name="description" content="2Pay"> | |
<meta name="author" content="Plano Bê"> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
<%= yield(:head) %> | |
</head> | |
<body> | |
<header class="navbar navbar-fixed-top"> | |
<nav class="navbar-inner"> | |
<div class="container"> | |
<%= render 'layouts/navigation' %> | |
</div> | |
</nav> | |
</header> | |
<div id="main" role="main"> | |
<div class="container"> | |
<div class="content"> | |
<div class="row"> | |
<div class="span12"> | |
<%= render 'layouts/messages' %> | |
<%= yield %> | |
</div> | |
</div> | |
<footer> | |
</footer> | |
</div> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
<%= yield :javascript %> | |
}); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HERE GOES MY HTML LINKS CALLING THIS METHOD --> | |
<% content_for :javascript do %> | |
function change_text_field_status(company_id) { | |
$("#summary_" + company_id).toggle(); | |
$("#form_params_" + company_id).toggle(); | |
$("#edit_params_link_" + company_id).toggle(); | |
$("#submit_" + company_id).toggle(); | |
$("#cancel_" + company_id).toggle(); | |
} | |
<% end %> | |
<!-- | |
IF I REMOVE THE CONTENT_FOR AND CALL JQUERY DIRECTLY, IT WORKS | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment