Skip to content

Instantly share code, notes, and snippets.

@djabif
Created December 23, 2012 23:30
Show Gist options
  • Save djabif/4366706 to your computer and use it in GitHub Desktop.
Save djabif/4366706 to your computer and use it in GitHub Desktop.
@model Bumbea.UInterface.Model.Account.LogOnModel
<div id="fb-root">
</div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=102110626620869";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));
</script>
<script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script>
<div id="welcome-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="welcome-modal-label"
data-backdrop="static" aria-hidden="true">
<form action="/Account/LogOn" method="post">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×</button>
<h3 id="welcome-modal-label">
Bienvenido a Bumbea!</h3>
</div>
<div class="modal-body">
<div class="span8" style="display: block;">
<div class="validation-msg">
</div>
<div class="span4 pull-left">
<div id="login-popover">
<ul class="log-in-options">
<li class="log-in-option"><a href="@Url.Action("FacebookLogOn", "Account", new { returnUrl = @Request.Url.AbsoluteUri })" class="btn-block zocial facebook">
Ingresa con Facebook</a> </li>
<li class="log-in-option"><a href="@Url.Action("TwitterLogOn", "Account", new { returnUrl = @Request.Url.AbsoluteUri })" class="btn-block zocial twitter">
Ingresa con Twitter</a> </li>
@* <li class="log-in-option"><a href="#" class="btn-block zocial googleplus">Ingresa con Google
</a></li>*@
<!-- <li class="log-in-option devider"><span>Ingresa con:</span></li> -->
<li class="log-in-option devider"><span>O Ingresa con tu cuenta de <b>Bumbea!</b></span></li>
<li class="log-in-option actions-item">
<label class="radio inline help-block register-options">
<input type="radio" name="login-radios" value="1" checked>Ya estoy registrado
</label>
<label class="radio inline help-block register-options">
<input type="radio" name="login-radios" value="0">No estoy registrado
</label>
<div class="registered-inputs">
@using (Html.BeginForm("LogOn", "Account", new { returnUrl = @Request.Url.AbsoluteUri }, FormMethod.Post))
{
<div class="input-prepend control-group">
<span class="add-on"><i class="icon-envelope"></i></span>
@Html.TextBoxFor(model => model.Email, new Dictionary<string, Object> { { "placeholder", "Email" }, { "data-validation-msg", "Por favor ingrese un email válido" } })
</div>
<div class="input-prepend control-group">
<span class="add-on"><i class="icon-key"></i></span>
@Html.TextBoxFor(model => model.Password, new Dictionary<string, Object> { { "type", "password" }, { "placeholder", "Contraseña" }, { "data-validation-msg", "Por favor ingrese su contraseña" } })
</div>
<button type="submit" id="log-in-continue" class="btn btn-primary action-buttons"
title="Ingresar">
Ingresar</button>
@Html.HiddenFor(model => model.RememberMe)
}
</div>
<div class="not-registered-inputs">
@using (Html.BeginForm("LogOn", "Account", new { returnUrl = @Request.Url.AbsoluteUri }, FormMethod.Post))
{
<div class="input-prepend control-group">
<span class="add-on"><i class="icon-envelope"></i></span>
@Html.TextBoxFor(model => model.Email, new Dictionary<string, Object> { { "placeholder", "Email" }, { "data-validation-msg", "Por favor ingrese un email válido" } })
</div>
<div class="input-prepend control-group">
<span class="add-on"><i class="icon-key"></i></span>
@Html.TextBoxFor(model => model.Password, new Dictionary<string, Object> { { "type", "password" }, { "placeholder", "Contraseña" }, { "data-validation-msg", "Por favor ingrese su contraseña" } })
</div>
<div class="input-prepend control-group">
<span class="add-on"><i class="icon-user"></i></span>
@Html.TextBoxFor(model => model.FirstName, new Dictionary<string, Object> { { "placeholder", "Nombre" }, { "data-validation-msg", "Por favor ingrese su Nombre" } })
</div>
<button type="submit" id="register-btn" class="btn btn-primary action-buttons" title="Registrarme">
Registrarme</button>
@Html.HiddenFor(model => model.RememberMe)
}
</div>
</li>
</ul>
</div>
</div>
<div class="span4 pull-right">
<div class="fb-like-box" data-href="http://www.facebook.com/BumbeaCom" data-width="292"
data-show-faces="true" data-stream="false" data-header="false">
</div>
<a href="https://twitter.com/bumbea_com" class="twitter-follow-button" data-show-count="true"
data-size="large" data-width="292" data-lang="es">Seguir a Bumbea_com</a>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment